Created
August 30, 2012 21:58
-
-
Save thenoviceoof/3542350 to your computer and use it in GitHub Desktop.
Utility to generate passwords
This file contains 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
#!/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('_', '.') |
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
pls keep passwords under 12 chars, no equals signs thx (: