Skip to content

Instantly share code, notes, and snippets.

@djaiss
Created January 4, 2015 18:29
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 djaiss/24d5542ffbeeb9f30c70 to your computer and use it in GitHub Desktop.
Save djaiss/24d5542ffbeeb9f30c70 to your computer and use it in GitHub Desktop.
Password generator command line
# 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