Re: newbie: php/mysql

From: Date: Mon, 28 Oct 2002 12:40:36 +0000
Subject: Re: newbie: php/mysql
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121688@lists.php.net to get a copy of this message
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:
Hey... 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) Thanks...


« previous php.general (#121688) next »