diff --git a/src/ecrypt/README b/src/ecrypt/README new file mode 100644 index 0000000..e389f89 --- /dev/null +++ b/src/ecrypt/README @@ -0,0 +1,32 @@ ++--------+ +| ecrypt | ++--------+ + +Simple encryption tools + ++--------------+ +| Installation | ++--------------+ + +Obtain the source tree: + + $ git clone https://git.everestlinux.org/EverestLinux/everest-tools + $ cd everest-tools/src/ecrypt + +Copy install.conf.def to install.conf + + $ mv install.conf.def install.conf + +Make any necessary adjustments and run +INSTALL.sh as root + + # ./INSTALL.sh + ++-------------------+ +| Included Programs | ++-------------------+ + + - ecrypt-genkey + - ecrypt-checkkey + + diff --git a/src/ecrypt/ecrypt-checkkey b/src/ecrypt/ecrypt-checkkey new file mode 100644 index 0000000..0c924e4 --- /dev/null +++ b/src/ecrypt/ecrypt-checkkey @@ -0,0 +1,10 @@ +#!/usr/bin/python3 + +import secrets +import string + +class colors: + blue = "\033[34m" + reset = "\033[m" + + diff --git a/src/ecrypt/ecrypt-genkey b/src/ecrypt/ecrypt-genkey new file mode 100755 index 0000000..94ad255 --- /dev/null +++ b/src/ecrypt/ecrypt-genkey @@ -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)