Created
April 26, 2014 16:19
-
-
Save marydn/11324213 to your computer and use it in GitHub Desktop.
Revisions
-
marydn created this gist
Apr 26, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ <?php // 32-byte length $token = md5(uniqid(mt_rand(), true)); // 256 $token = bin2hex(mcrypt_create_iv(128, MCRYPT_DEV_RANDOM));