Skip to content

Instantly share code, notes, and snippets.

@takenoko-str
Created November 30, 2016 16:21
Show Gist options
  • Save takenoko-str/fde1bd89836bb29a517ec5e7fcbd23db to your computer and use it in GitHub Desktop.
Save takenoko-str/fde1bd89836bb29a517ec5e7fcbd23db to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from random import choice
import string
def gen_passwd(length=8, chars=string.letters+string.digits+string.punctuation):
return ''.join([ choice(chars) for i in range(length) ])
for i in range(6):
print gen_passwd(12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment