Last active
September 27, 2019 08:24
-
-
Save ScribbleGhost/8db5b0ba73edf1c70e074f3b8dbe816a to your computer and use it in GitHub Desktop.
Password generator
This file contains 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 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) |
Author
ScribbleGhost
commented
Sep 27, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment