Advertisement
Guest User

Untitled

a guest
Jan 14th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. import random
  2.  
  3. print(R'''
  4. ================================================================================================
  5. ____ __ ___ ___ _ _ _____ ____ ____ ___ ____ _ _ ____ ____ __ ____ _____ ____
  6. ( _ \/__\ / __) __| \/\/ | _ | _ ( _ \ / __| ___| \( | ___| _ \ /__\(_ _| _ | _ \
  7. )___/(__)\\__ \__ \) ( )(_)( ) /)(_) ) ( (_-.)__) ) ( )__) ) //(__)\ )( )(_)( ) /
  8. (__)(__)(__|___(___(__/\__|_____|_)\_|____/ \___(____|_)\_|____|_)\_|__)(__|__)(_____|_)\_)
  9. ================================================================================================
  10. ''')
  11.  
  12.  
  13. chars = 'QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890!@#$%^&*()'
  14.  
  15. while True:
  16. length=int(input("Password length: "))
  17. num=int(input("Number of passwords: "))
  18. print("----------\n")
  19.  
  20. for p in range(num):
  21. password=''
  22. for c in range(length):
  23. password += random.choice(chars)
  24. print(password + "\n")
  25.  
  26. more=str(input("Generate more? "))
  27. if more == "no":
  28. break
  29. if more == "yes":
  30. print('')
  31. else:
  32. break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement