php - Generate a Unique Key -


what’s best way of generating unique key, can’t guessed easily?

i create unique key both account activation , referral purposes, includes checksum prevent users guessing other users activation or referral keys.

also, in php possible create own session key? if so, how make unique?

any appreciated.

don't over-complicate it:

$key = md5(microtime().rand()); 

Comments

Popular posts from this blog

sql - text truncated using perl DBI insert -

c++ - Is it possible to compile a VST on linux? -

php - Pass object by reference or value -