Skip to content

Instantly share code, notes, and snippets.

@MarcelFox
Last active February 13, 2018 13:56
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 MarcelFox/0a34a8c4b6922a1062a296a23c9fd4fc to your computer and use it in GitHub Desktop.
Save MarcelFox/0a34a8c4b6922a1062a296a23c9fd4fc to your computer and use it in GitHub Desktop.
Python Pass Generator
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))
@MarcelFox
Copy link
Author

MarcelFox commented Dec 10, 2017

You can run it directly using curl:

python <(curl -ks https://gist.githubusercontent.com/MarcelFox/0a34a8c4b6922a1062a296a23c9fd4fc/raw/d603014b3396a513fe7692ed051c523399e3c8e2/passgen.py)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment