Skip to content

Instantly share code, notes, and snippets.

@nigelbabu
Created November 10, 2011 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nigelbabu/1354292 to your computer and use it in GitHub Desktop.
Save nigelbabu/1354292 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)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment