ecrypt v1.0.0

This commit is contained in:
lw-everestlinux
2022-10-20 11:26:36 -04:00
parent b460a52023
commit 43e009286a
3 changed files with 64 additions and 0 deletions

22
src/ecrypt/ecrypt-genkey Executable file
View File

@@ -0,0 +1,22 @@
#!/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)