Skip to content

Instantly share code, notes, and snippets.

@arthuralvim
Created January 3, 2014 18:49
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 arthuralvim/8243926 to your computer and use it in GitHub Desktop.
Save arthuralvim/8243926 to your computer and use it in GitHub Desktop.
Simple script to generate passwords.
import random
import string
def gen_pass(size=6, chars=string.ascii_uppercase + string.digits):
return ''.join(random.choice(chars) for x in range(size))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment