Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #When you hit run you will can select the length of the passwords and how many you want to be generated + infinite password loop code
- import random
- print("Max length is 70")
- print("If you want infinite password put \n 01010101010101")
- print("Just copy it")
- lower = "abcdefghijklmnopqrstuvwxyz"
- upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
- numbers = "1234567890"
- symbols = "!@#$%^&*"
- String = lower + upper + numbers + symbols
- NumbersToBePrinted = int(input("How many passwords you want to be generated: "))
- length = int(input("What is the length of the password you want: "))
- for i in range(NumbersToBePrinted):
- print("".join(random.sample(String, length)))
- if NumbersToBePrinted == "01010101010101":
- while True:
- print("".join(random.sample(String, length)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement