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

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

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -