Created
October 3, 2017 03:25
-
-
Save jbweber/3662b266fe9c6c9ea06d75e52ac97b6a to your computer and use it in GitHub Desktop.
password generation
This file contains hidden or 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/python | |
import random | |
import string | |
options = string.ascii_letters | |
options += string.hexdigits | |
options += '_-@#$^' | |
size = random.randint(16, 32) | |
password = ''.join(random.choice(options) for i in range(size)) | |
print password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment