Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- print(R'''
- ================================================================================================
- ____ __ ___ ___ _ _ _____ ____ ____ ___ ____ _ _ ____ ____ __ ____ _____ ____
- ( _ \/__\ / __) __| \/\/ | _ | _ ( _ \ / __| ___| \( | ___| _ \ /__\(_ _| _ | _ \
- )___/(__)\\__ \__ \) ( )(_)( ) /)(_) ) ( (_-.)__) ) ( )__) ) //(__)\ )( )(_)( ) /
- (__)(__)(__|___(___(__/\__|_____|_)\_|____/ \___(____|_)\_|____|_)\_|__)(__|__)(_____|_)\_)
- ================================================================================================
- ''')
- chars = 'QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890!@#$%^&*()'
- while True:
- length=int(input("Password length: "))
- num=int(input("Number of passwords: "))
- print("----------\n")
- for p in range(num):
- password=''
- for c in range(length):
- password += random.choice(chars)
- print(password + "\n")
- more=str(input("Generate more? "))
- if more == "no":
- break
- if more == "yes":
- print('')
- else:
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement