Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $random_hash = md5(openssl_random_pseudo_bytes(32));
- $random_hash = md5(mcrypt_create_iv(32, MCRYPT_DEV_URANDOM));
- // New in PHP7
- $random_hash = bin2hex(random_bytes(32));
- db("INSERT INTO confirmtoken ...", $confirm_token, time()+24*3600);
- db("SELECT * FROM confirmtokens WHERE id=? AND maxtime<UNIX_TIMESTAMP()");
Add Comment
Please, Sign In to add comment