Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import string
- import secrets
- symbols = string.ascii_letters + string.digits
- print("Enter setID (0 - w/ special characters): ", end='')
- setid = input()
- if setid == "0":
- symbols += ".,-_@#!$%^&*"
- print("Enter password length: ", end='')
- length = int(input())
- print("Enter amount of passwords to generate: ", end='')
- amount = int(input())
- for i in range(amount):
- password = ''.join(secrets.choice(symbols) for i in range(length))
- print(password)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement