note 29208 deleted from function.md5 by jimw
| From: | jimw@php.net | Date: | Sat, 08 Feb 2003 19:51:11 +0000 |
| Subject: | note 29208 deleted from function.md5 by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-43651@lists.php.net to get a copy of this message | ||
I ran across an authentication script that uses MD5 for the password. I had never used it, so I
looked it up. It still looks to me like you would want to use crypt($pass, $salt) for storing your
passwords in your database table, and then use something like:
$sql = "SELECT username FROM users WHERE username = '$user' AND password =
'crypt($pass, $salt)'";
to retreive it.