The usual way of doing logins with encrypted/hashed passwords is

adding new user into the table:
INSERT users SET username='$_POST[username]', password=MD5('$_POST[pwd]');

checking if username/password match:
SELECT * FROM users WHERE username='$_POST[username]' AND password=MD5('$_POST[pwd]');

hashed passwords cannot be decrypted

Mr. BuNgL3 wrote:

I have a little problem... i want to read an encrypted field from mysql
database to a php variable... what is the code line that i must enter? (ex:
password validation in a login form)

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to