Re: regarding password in mysql?
| From: | Andrew Brampton | Date: | Sat, 28 Jul 2001 13:50:57 +0000 |
| Subject: | Re: regarding password in mysql? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60043@lists.php.net to get a copy of this message | ||
I was just looking in the help to find out what PASSWORD does... but I can't find it.
But I can offer this advice.
You can't decypt the password, so to check if the password entered is valid, you encypt it, and
compare the 2 hashed passwords..
Andrew
----- Original Message -----
From: Balaji Ankem
To: php-general@lists.php.net
Sent: Saturday, July 28, 2001 11:35 AM
Subject: [PHP] regarding password in mysql?
Hi dearest friends,
while insertion of an employee number and password i am inserting like
insert into employee values('$empid',PASSWORD('$passwd'));
how to decrypt it while comparision during login.
Thanks in advance
Regards
-Balaji
------------------------------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net