-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathencrypto.py
More file actions
64 lines (46 loc) · 1.34 KB
/
encrypto.py
File metadata and controls
64 lines (46 loc) · 1.34 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
from Operations.ency import enc
from Operations.steno import sten
from Operations.dcy import dcy
from Operations.hashing import hasher
from Operations.utils import *
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')
@shell(prompt="encrypto>", intro="Welcome to the Encrypto")
def encrypto():
pass
@encrypto.command
def help():
print("""
clear: To clear the shell
encrypt : To perform the encrytion
decrypt : To perfrom the decryption
hash : To get the hash
stenographty : To hide measage into a image
""")
@encrypto.command
def encrypt():
enc()
@encrypto.command
def decrypt():
dcy()
@encrypto.command
def stenography():
sten()
@encrypto.command
def hash():
hasher()
@encrypto.command
def clear():
try:
os.system("cls")
except:
os.system("clear")
try : # using to handle the exception caused within the operation
encrypto()
except:
pass