Created
May 17, 2019 12:44
-
-
Save saltun/cd9025fce14fbfec82026eafc5fec345 to your computer and use it in GitHub Desktop.
PHP Strong unique api key generator
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 | |
echo bin2hex(random_bytes(20)); // int type | |
// return 4b5ffb1b86049479d7bc875bcaf0a9b4fcfd1b16 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment