Skip to content

Instantly share code, notes, and snippets.

@autoferrit
Forked from nigelbabu/password.py
Created March 14, 2012 18:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save autoferrit/2038505 to your computer and use it in GitHub Desktop.
Save autoferrit/2038505 to your computer and use it in GitHub Desktop.
Generate random password
#!/usr/bin/python
import string
from random import choice
print ''.join([choice(string.letters + string.digits + string.punctuation) for i
in range(15)])
@Theaxiom
Copy link

Nice. Simple and sweet.

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