crypt()
| From: | (Edward Peloke) | Date: | Thu, 13 Feb 2003 19:20:13 +0000 |
| Subject: | crypt() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-135505@lists.php.net to get a copy of this message | ||
Is there anyway to make crypt() behave like md5() and give the same results
for the same string? All of the passwords for the db I am using had crpyt()
applied to them before they were entered in the db. How do I then verify
that passwords match?
I just did this:
$test=crypt('test');
print $test. "<br>";
$test2=crypt('test');
print $test2. "<br>";
and it printed out two completely different strings. I saw in the functions
list it was talking about salt but I am not sure what that means.
Thanks,
Eddie