Skip to content

Instantly share code, notes, and snippets.

@dsaiztc
Last active September 6, 2018 08:06
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 dsaiztc/2d0e70b7826b326d5daca88d6d3bdede to your computer and use it in GitHub Desktop.
Save dsaiztc/2d0e70b7826b326d5daca88d6d3bdede to your computer and use it in GitHub Desktop.
import string
import random
chars = string.ascii_letters + string.digits + string.punctuation
chars = string.ascii_letters + string.digits
pwd_length = 16
''.join((random.choice(chars)) for x in range(pwd_length))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment