Skip to content

Instantly share code, notes, and snippets.

@ScribbleGhost
Last active September 27, 2019 08:24
Show Gist options
  • Save ScribbleGhost/8db5b0ba73edf1c70e074f3b8dbe816a to your computer and use it in GitHub Desktop.
Save ScribbleGhost/8db5b0ba73edf1c70e074f3b8dbe816a to your computer and use it in GitHub Desktop.
Password generator
import random
chars = "abcdefghijklmnopqrstuvwxyziABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890^?!?$%&/()=?`'+#*'~';:_,.-<>|"
password = ""
print("Use Char list = %s \n" % chars)
length = int(input("[*] Input Password Length: "))
while len(password) != length:
password = password + random.choice(chars)
if len(password) == length:
print("Password: %s" % password)
@ScribbleGhost
Copy link
Author

2019 09 27 10 23 17

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