Re: Password Encryption for MySQL field

2002-04-14 Thread rory oconnor
OK, this is neat, but I can't seem to get it to wrok correctly. I can insert it just fine (i see the encrypted password in the field), but when I try to select it using the plain text password I can't. (using perl) for inserting: $insert_user = "insert into $table (email,password,date) VALUES (

Re: Password Encryption for MySQL field

2002-04-09 Thread Ron
Ooops! Correction: Incorrect -- connect("DBI:mysql:HOST", "DB", 'DB_PASSWORD'); Should be -- connect( "dbi:mysql:dbname", "username", 'DBpassword'); Ron === "Ron" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... This is my two-

Re: Password Encryption for MySQL field

2002-04-08 Thread Ron
This is my two-bits on your question. I hope this helps. Ex: ENCODE('str', 'password') str is the string of the chosen password and password is the mySQL encryption password for encoding/decoding the password string. ENCODES returns a binary string and may be decoded with DECODE(). You should

Re: Password Encryption for MySQL field

2002-04-08 Thread Luke Davison
Rory, I would recommend using MySQL's buit in password() function: INSERT INTO user ( username,password ) VALUES ( 'someuser', password( 'plaintextpasshere' ) ); SELECT ( username, password ) FROM user WHERE username='someuser' AND password=password( 'plaintextpass' ); Regards, Luke Davison --