Re: PHP and MD5 passwords?
| From: | Pierre-Yves Lemaire | Date: | Wed, 04 Apr 2001 11:05:42 +0000 |
| Subject: | Re: PHP and MD5 passwords? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47082@lists.php.net to get a copy of this message | ||
hum, that would do it?
function encrypt_pwd( $pwd ){
if ( function_exists( md5 )){
$password = md5( $pwd );
}else{
$password = $pwd;
}
return $password;
}
py
At 11:12 AM 4/4/01 -0400, you wrote:
Greetings, How would I go about using PHP to take an entered password, and check it against an encyrpted MD5 password in a database or flat-file? -/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-+ ====================== + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + pylem@sympatico.ca + ======================Chris Hutton - KF4YDF turtle@raptor.nu Senior Administrator 404.378.0499, Fax 877.471.6649 RaptorNet Systems http://www.raptor.nu-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/- -- 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