[eluser]skattabrain[/eluser]
ok, so when I take $value and encrypt it like this ... $new_value = md5($value) ... I know that md5($value) will always equal $new_value.
question ... can anything other that md5($value) ever equal the value I now have call $new_value?
is there a 1 in a billion chance that md5($some_other_rare_value) will ever be the same as $new_value?
i'm creating a tracking system and i need a very quick, non-resource intensive way to come up with a unique value that will never conflict with it ... even if i have a trillion records in the db.
might seem like a goofy question ... but i'm curious.
basically ... i need a hash that is not so much secure (no concern in this application) but unique. i create my hash by taking ...
$hash = md5(microtime().$_SERVER['REMOTE_ADDR']);