[PHP-DB] How to compare crypted password with stored in MySQL

2006-02-01 Thread Eduardo Bejar
Hi, I have a MySQL database with encrypted passwords, that were created with: $input_password = $_POST[password]; $salt = ab; /// Salt is always two character string and the same for all $password_to_save = crypt($input_password, $salt); and then saved in MySQL with: insert into

Re: [PHP-DB] How to compare crypted password with stored in MySQL

2006-02-01 Thread Philip Hallstrom
On Wed, 1 Feb 2006, Eduardo Bejar wrote: Hi, I have a MySQL database with encrypted passwords, that were created with: $input_password = $_POST[password]; $salt = ab; /// Salt is always two character string and the same for all $password_to_save = crypt($input_password, $salt); [snip]

Re: [PHP-DB] How to compare crypted password with stored in MySQL

2006-02-01 Thread Mark Bomgardner
Eduardo Bejar wrote: Hi, I have a MySQL database with encrypted passwords, that were created with: $input_password = $_POST[password]; $salt = ab; /// Salt is always two character string and the same for all $password_to_save = crypt($input_password, $salt); and then saved in MySQL with: