note 56001 deleted from function.md5 by mazzanet
| From: | mazzanet@php.net | Date: | Mon, 03 Oct 2005 09:49:25 +0000 |
| Subject: | note 56001 deleted from function.md5 by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96275@lists.php.net to get a copy of this message | ||
Note Submitter: bucketbot
----
alex at blackkettle:
"Your scheme is almost certainly less secure than md5 alone would be"
Not true. The method Harry uses does not trade "a little security for a little obscurity".
None of the actual password plaintext is revealed in the stored value. The *random* seed is stored
because it is random and would otherwise be unrecoverable. Harry's method doesn't reduce
the number of passwords that a brute-force would have to check and in fact, if the attacker cannot
see the code, they would not know if the stored value was md5 or sha1.
The main advantage is that passwords will never have the same md5 hash because they are compounded
with a random seed. An attacker would have to add the seed for each check. Adding the obscurity of
md5/sha1 is another barrier for an attacker to get past and it's a good idea.