Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
- lower = "abcdefghijklmnopqrstuvwxyz"
- nums = "1234567890"
- symbols = "!@#$%^&*()_+|}{<>?[]="
- keys = open("some_keys.txt", "w+")
- combination = upper + lower + nums + symbols
- counter = 0
- while True:
- result = "".join(random.choices(combination, k=10))
- counter += 1
- if counter > 50:
- break
- keys.write(f"{result} \n")
- print(f"{result}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement