Created
January 4, 2015 18:29
-
-
Save djaiss/24d5542ffbeeb9f30c70 to your computer and use it in GitHub Desktop.
Password generator command line
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
# stolen from http://invert.svbtle.com/using-vim-as-a-password-manager | |
import random | |
f = open('/usr/share/dict/words') | |
words = map(lambda x: x.strip(), f.readlines()) | |
password = '-'.join(random.choice(words) for i in range(2)).capitalize() | |
password += str(random.randint(1, 9999)) | |
print password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment