Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"
- while 1:
- key_len = int(input("What length would you like your key to be?: "))
- key_count = int(input("How many keys would you like?: "))
- for x in range(0,key_count):
- key = ""
- for x in range(0,key_len):
- key_char = random.choice(chars)
- key = key + key_charprint("Here's your key: ", key)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement