-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
37 lines (29 loc) · 1.18 KB
/
main.py
File metadata and controls
37 lines (29 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from Operations.ency import enc
from Operations.steno import sten
from Operations.dcy import dcy
from Operations.hashing import hasher
from Operations.utils import *
def KeybordInteruptHandler(signal , frame):
print(Fore.YELLOW,"\nKeybordInterupt (ID: {}) has been caught".format(signal),Fore.RESET)
exit()
signal.signal(signal.SIGINT, KeybordInteruptHandler)
fig = Figlet(font='slant')
Created_by = colored(' By Exido-Rio\n', 'yellow', attrs=['bold'])
About_tool = colored(' A tool to encrypt and decrypt your data easily using Fernet Encryption.'
' You can also use this on any type of file upto 50GB.', 'blue')
print(colored(fig.renderText('ENCRYPTOR'), 'green'), Created_by, About_tool, '\n')
q = [
inquirer.List("input", message="What you wanna do ?", choices=[
"encrypt", "decrypt", "hash", "stenography", "exit"])
]
inp = inquirer.prompt(q, theme=GreenPassion())
if inp['input'] == "encrypt":
enc()
elif inp['input'] == "decrypt":
dcy()
elif inp['input'] == "stenography":
sten()
elif inp['input'] == "hash":
hasher()
else:
exit()