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 retr
Thanks for the tip... I have now implemented a while loop to make sure
that it goes into the db, as you say this should never actually loop,
but if it does it should only loop once..
kind of extra security..
cheers
Richard Davey wrote:
Hello Guy,
Thursday, December 9, 2004, 11:39:27 AM, you wrot
On this note - what is considered "best practice" in a - sent to friend
type thing.
i.e. User inputs their name + message + email + friends email into a
html/flash form
friend gets a link to read the message.
currently I do this:
1 collect form input
2 create hash using the md5/uniqid method :
3 matches
Mail list logo