duplicate md5 hash's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I know this is highly unlikely... but I have this code:

$hash = md5(uniqid($message));

where message is a string that the user will input.

How likely is it that this hash might be repeated?

I'm using the hash as a primary key in a database - the user gets sent the hash as part of a url to retrieve the details of that database row.

(its a basic send to a friend e-card system).

Is there any way that the same hash could have been generated more than once?

Cheers,
Guy

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux