Skip to content

Instantly share code, notes, and snippets.

@tuxfight3r
Created January 31, 2017 15:48
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 tuxfight3r/bff7ad7a7ca532205c24cf4f57a29e86 to your computer and use it in GitHub Desktop.
Save tuxfight3r/bff7ad7a7ca532205c24cf4f57a29e86 to your computer and use it in GitHub Desktop.
python password generator
#!/usr/bin/python3
import string
from random import *
letters = string.ascii_letters
digits = string.digits
symbols = string.punctuation
chars = letters + digits + symbols
min_length = 8
max_length = 16
password = "".join(choice(chars) for x in range(randint(min_length, max_length)))
print(password)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment