Skip to content

Instantly share code, notes, and snippets.

@TutorialDoctor
Created January 10, 2018 22:49
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 TutorialDoctor/4e32403b0c6707d6d787eb5d45c8e0f4 to your computer and use it in GitHub Desktop.
Save TutorialDoctor/4e32403b0c6707d6d787eb5d45c8e0f4 to your computer and use it in GitHub Desktop.
Generated alphanumeric passwords with special characters with this python script
import string
from random import *
characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
password = "".join(choice(characters) for x in range(randint(8, 10)))
#print password
for x in range (151):
i = "".join(choice(characters) for x in range(randint(8, 10)))
with open("passwords.txt","a") as outfile:
outfile.write(i+"\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment