note 53912 deleted from function.md5 by mazzanet
| From: | mazzanet@php.net | Date: | Mon, 03 Oct 2005 09:42:41 +0000 |
| Subject: | note 53912 deleted from function.md5 by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96269@lists.php.net to get a copy of this message | ||
Note Submitter: tommiboy
----
Thomas Holz:
Awesome idea. This is simplicity itself. I love it :-)
mina86:
"there are more then 2^128 strings of maximum length of 128 bits"
Humm... you almost got me there, but this is not true. MD5 input length is congruent to 448 modulo
512, padded with zero bits.
Therefore, any message less than 448 bits is just a binary number of length 448 (with some zeros). A
128 bits message generates a block of 448 bits with 320 zero-bits, anything less will just have more
zero bits, so there is really no such thing as "less than length".
Your objection is right, however, if you explicitely save the message's length, too (MD5 does
not).