Encryption Question
| From: | Tom Ray | Date: | Tue, 24 Sep 2002 00:51:36 +0000 |
| Subject: | Encryption Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-117335@lists.php.net to get a copy of this message | ||
I want to compare a password to a encrypted password stored in my mySQL database using password('password'), what's the best way to compare the two?
Encrypted the password sent by the user and compare or pull the password from the database based on username, decrypt it and then compare?