advanced code snippet search
lajevardi on 03/04/09
hash
03/04/09 11:25am03/04/09 11:18am03/04/09 11:15am
1 person have marked this snippet as a favorite
Nix
I'm using this to send verification emails.
function generateHash(){ $result = ""; $charPool = '0123456789abcdefghijklmnopqrstuvwxyz'; for($p = 0; $p<15; $p++) $result .= $charPool[mt_rand(0,strlen($charPool)-1)]; return sha1(md5(sha1($result)));}
Report this snippet Tweet
Comment:
You need to login to post a comment.