ecrypt v1.0.0
This commit is contained in:
parent
b460a52023
commit
43e009286a
32
src/ecrypt/README
Normal file
32
src/ecrypt/README
Normal file
@ -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
|
||||
|
||||
|
10
src/ecrypt/ecrypt-checkkey
Normal file
10
src/ecrypt/ecrypt-checkkey
Normal file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import secrets
|
||||
import string
|
||||
|
||||
class colors:
|
||||
blue = "\033[34m"
|
||||
reset = "\033[m"
|
||||
|
||||
|
22
src/ecrypt/ecrypt-genkey
Executable file
22
src/ecrypt/ecrypt-genkey
Executable 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)
|
Loading…
Reference in New Issue
Block a user