Skip to content

Instantly share code, notes, and snippets.

@thenoviceoof
Created August 30, 2012 21:58
Show Gist options
  • Save thenoviceoof/3542350 to your computer and use it in GitHub Desktop.
Save thenoviceoof/3542350 to your computer and use it in GitHub Desktop.
Utility to generate passwords
#!/usr/bin/python
import time
import base64
import hashlib
hash_out = base64.urlsafe_b64encode(hashlib.md5(str(time.time())).digest())
print hash_out[:-2].replace('-', ',').replace('_', '.')
@yosemitebandit
Copy link

pls keep passwords under 12 chars, no equals signs thx (:

@thenoviceoof
Copy link
Author

screw that 12 chars thing: MOAR ENTROPY. Plus, [,.] for better entry on smartphones. There's probably an encoding that uses something like 96/127 ascii values for better encoding density, but whatever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment