Last active
February 13, 2018 13:56
-
-
Save MarcelFox/0a34a8c4b6922a1062a296a23c9fd4fc to your computer and use it in GitHub Desktop.
Python Pass Generator
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
import os, random, string | |
length = 10 | |
chars = string.ascii_letters + string.digits + '!@#$%^&*()' | |
o_chars = '!@#$%^&*()' | |
random.seed = (os.urandom(1024)) | |
print (random.choice(o_chars) + ''.join(random.choice(chars) for i in range(length)) + random.choice(o_chars)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can run it directly using curl:
python <(curl -ks https://gist.githubusercontent.com/MarcelFox/0a34a8c4b6922a1062a296a23c9fd4fc/raw/d603014b3396a513fe7692ed051c523399e3c8e2/passgen.py)