23 lines
366 B
Python
Executable File
23 lines
366 B
Python
Executable File
#!/usr/bin/python3
|
|
|
|
import secrets
|
|
import string
|
|
|
|
class colors:
|
|
blue = "\033[34m"
|
|
reset = "\033[m"
|
|
|
|
letters = string.ascii_letters
|
|
digits = string.digits
|
|
chars = string.punctuation
|
|
|
|
alphabet = letters + digits + chars
|
|
|
|
keyLength = 64
|
|
|
|
key = ''
|
|
for i in range(keyLength):
|
|
key += ''.join(secrets.choice(alphabet))
|
|
|
|
print(colors.blue + "Key: " + colors.reset + key)
|