note 46899 added to function.md5
| From: | martin at marty dot me dot uk | Date: | Wed, 27 Oct 2004 13:02:34 +0000 |
| Subject: | note 46899 added to function.md5 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-79171@lists.php.net to get a copy of this message | ||
rikki dot tissier at gmail dot com,
Not only is it theoretically possible for two strings to have the same hash it does happen, for
example try UPDATE table SET uId = md5(id) and then SELECT count(*) FROM table GROUP BY uId
----
Manual Page -- http://www.php.net/manual/en/function.md5.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46899
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46899&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46899&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46899&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46899&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46899&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46899&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46899&report=yes
Search -- http://master.php.net/manage/user-notes.php