Created
September 9, 2019 17:17
-
-
Save dino213dz/a67f45a2301a69784a15c6601d1077b5 to your computer and use it in GitHub Desktop.
MD5 collision code: generate a token with salt using a random number
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 = microtime(); | |
$generated_token = MD5('$salt' . rand(1, 100)); | |
echo $generated_token; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment