Created
November 18, 2018 02:53
-
-
Save mmanylov-zz/4889ea7be14548f7145785f4532f27f6 to your computer and use it in GitHub Desktop.
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 secrets | |
import string | |
length = 0 | |
while(length < 1): | |
length = int(input("Input pass length: ")) | |
alphabet = string.ascii_letters + string.digits | |
password = ''.join(secrets.choice(alphabet) for i in range(length)) # for a 20-character password | |
print(password) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment