RE: [PHP] Encryption Question

From: Date: Tue, 24 Sep 2002 01:47:22 +0000
Subject: RE: [PHP] Encryption Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-117347@lists.php.net to get a copy of this message
Just how are you going to decrypt it? Password encryption is ordinarily one-way - you have no choice. You have to compare encrypted passwords. -----Original Message----- From: Tom Ray [mailto:tom@blazestudios.com] SI 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?

« previous php.general (#117347) next »