[PHP] PHP and MD5 passwords?
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? -/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/- Chris Hutton - KF4YDF [EMAIL PROTECTED] Senior Administrator404.378.0499, Fax 877.471.6649 RaptorNet Systems http://www.raptor.nu -/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP and MD5 passwords?
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? -/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/- Chris Hutton - KF4YDF [EMAIL PROTECTED] Senior Administrator404.378.0499, Fax 877.471.6649 RaptorNet Systems http://www.raptor.nu -/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/-\-/- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] + == + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + [EMAIL PROTECTED] + == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP and MD5 passwords?
On 4 Apr 2001 08:06:06 -0700, Chris Hutton [RaptorNet] [EMAIL PROTECTED] wrote: 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? retrieve the record you'd like to check and compare it to md5($UserEnteredPassword). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]