Bug #13206 Updated: MD5 option for 128 bytes long digest (standard)
| From: | heyesr@php.net | Date: | Fri, 07 Sep 2001 23:13:27 +0000 |
| Subject: | Bug #13206 Updated: MD5 option for 128 bytes long digest (standard) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-65398@lists.php.net to get a copy of this message | ||
ID: 13206
Updated by: heyesr
Reported By: neurobasher@planetquake.com
Old Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating System: Windows 98
PHP Version: 4.0.4pl1
New Comment:
md5() outputs 32 hex characters. 1 hex character = 4 bits.
32 * 4 = 128 bits.
128 bits / 8 = 16 bytes
Previous Comments:
------------------------------------------------------------------------
[2001-09-07 18:32:14] neurobasher@planetquake.com
It's a feature request regarding the MD5 string function.
The standard MD5 hash algorithm provides a 16 bytes long digest. PHP's MD5, even though it says
it's "using the RSA Data Security, Inc. MD5 Message-Digest Algorithm", is
non-standard: gives out a 32 bytes long digest.
I like the MD5 function very much, but I don't like it being described as using MD5 if it
doesn't act like the standard MD5 algorithm, so my suggestion is that you should at least
provide an option to choose between "32 bytes digest (non-standard)" and "16 bytes
digest (standard)" modes.
It also would help a lot if source code/reference to PHP's unique MD5 implementation (which I
can't seem to find ANYWHERE on the net) would be made available.
Thank you in advance,
Dan 'Neurobasher' Gomes
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13206&edit=1