Created
January 31, 2017 15:48
-
-
Save tuxfight3r/bff7ad7a7ca532205c24cf4f57a29e86 to your computer and use it in GitHub Desktop.
python password generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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