note 44861 added to function.uniqid

From: Date: Wed, 18 Aug 2004 13:03:45 +0000
Subject: note 44861 added to function.uniqid
Groups: php.notes 
Request: Send a blank email to php-notes+get-74878@lists.php.net to get a copy of this message
@tbreslowREMOVE-NOSPAM at yahoo dot com The idea of finding 2 hashes that match in 50,000 is not impossible. The chance that somebody as an individual will find 2 hashes that match is so remote as to be classed as impossible, but not the chance of somebody in the entire group of users. Take as an example a lottery. The chance that you will win is extremely remote. The chance that somebody will win however is almost gauranteed. md5 only has a finite number of possible hashes(even if it is a rather large number). Once that number is reached, every hash following it will be a duplicate. Therefore, the chance of finding 2 matching hashes increases with every hash generated. Taking into account that md5 has been around for 12 years, we may already have passed the magic number. ---- Manual Page -- http://www.php.net/manual/en/function.uniqid.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44861 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44861&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44861&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#74878) next »