note 26022 added to function.md5
| From: | leigh at waster dot org | Date: | Tue, 15 Oct 2002 12:45:38 +0000 |
| Subject: | note 26022 added to function.md5 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38107@lists.php.net to get a copy of this message | ||
This is to everyone who said "just store the md5 hash of the users password on the server, then
get the user to send the the hash of their password to log in."
This technique is just as bad as sending a clear text password, if an attacker was to intercept the
user sending the hash of their password, then all they would need to do is submit the same hash to
gain access.
Always use some kind of random variable.
--
http://www.php.net/manual/en/function.md5.php
http://master.php.net/manage/user-notes.php?action=edit+26022
http://master.php.net/manage/user-notes.php?action=delete+26022
http://master.php.net/manage/user-notes.php?action=reject+26022