Skip to content

Instantly share code, notes, and snippets.

@dino213dz
Created September 9, 2019 17:17
Show Gist options
  • Save dino213dz/a67f45a2301a69784a15c6601d1077b5 to your computer and use it in GitHub Desktop.
Save dino213dz/a67f45a2301a69784a15c6601d1077b5 to your computer and use it in GitHub Desktop.
MD5 collision code: generate a token with salt using a random number
<?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