Last active
December 27, 2015 11:39
-
-
Save chanakasan/7320489 to your computer and use it in GitHub Desktop.
php snippet for generating a random salt
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 characters
<?php | |
$salt = base_convert(sha1(uniqid(mt_rand(), true)), 16, 36); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment