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 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: [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]