Re: [PHP4BETA] UUIDs

From: Date: Wed, 23 Jun 1999 13:32:11 +0000
Subject: Re: [PHP4BETA] UUIDs
References: 1 2 3 4 5 6 7  Groups: php.version4 
Request: Send a blank email to php-version4+get-1676@lists.php.net to get a copy of this message
Kristian Köhntopp wrote: > > Monte Ohrt wrote: > > These numbers are guaranteed unique. But are they guessable? Secure? > > Make your own observation :-) > > I do not understand in how far this is easier, smaller or more secure > than md5(uniqid($secret))... > > Kristian > I don't think anyone said it was. If you have the need for guaranteed uniqueness, UUID is an algorithm that does just that. I believe md5() could generate a duplicate id, although its highly unlikely. For a temporary session ID, md5() sounds sufficient. But if someone is using that session ID as a permanent customer ID and cannot chance that it could ever be duplicated, maybe UUID is a safer choice. Monte

« previous php.version4 (#1676) next »