Last active
November 2, 2019 08:24
-
-
Save mrtc0/1161ff1edd71c51bb45e to your computer and use it in GitHub Desktop.
Password Generator for Python3
This file contains hidden or 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
#!/usr/bin/python3 | |
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment