Skip to content

Instantly share code, notes, and snippets.

@shoaibi
Created June 25, 2015 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shoaibi/641ebf7ccd714d5e5bac to your computer and use it in GitHub Desktop.
Save shoaibi/641ebf7ccd714d5e5bac to your computer and use it in GitHub Desktop.
My stupid password generator
<?php
echo substr(str_replace('+', '.', base64_encode(pack('N4', mt_rand(), mt_rand(), mt_rand(), mt_rand()))), 0, 22) . PHP_EOL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment