-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtranslator.py
51 lines (40 loc) · 3.34 KB
/
translator.py
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
from defs import *
import time
try:
from colorama import Fore, Back, Style
except:
print("You need to install colorama\nUse 'pip install colorama'")
TEXT = """
░█████╗░░█████╗░███████╗░██████╗░█████╗░██████╗░░██████╗
██╔══██╗██╔══██╗██╔════╝██╔════╝██╔══██╗██╔══██╗██╔════╝
██║░░╚═╝███████║█████╗░░╚█████╗░███████║██████╔╝╚█████╗░
██║░░██╗██╔══██║██╔══╝░░░╚═══██╗██╔══██║██╔══██╗░╚═══██╗
╚█████╔╝██║░░██║███████╗██████╔╝██║░░██║██║░░██║██████╔╝
░╚════╝░╚═╝░░╚═╝╚══════╝╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝╚═════╝░
████████╗██████╗░░█████╗░███╗░░██╗░██████╗██╗░░░░░░█████╗░████████╗░█████╗░██████╗░
╚══██╔══╝██╔══██╗██╔══██╗████╗░██║██╔════╝██║░░░░░██╔══██╗╚══██╔══╝██╔══██╗██╔══██╗
░░░██║░░░██████╔╝███████║██╔██╗██║╚█████╗░██║░░░░░███████║░░░██║░░░██║░░██║██████╔╝
░░░██║░░░██╔══██╗██╔══██║██║╚████║░╚═══██╗██║░░░░░██╔══██║░░░██║░░░██║░░██║██╔══██╗
░░░██║░░░██║░░██║██║░░██║██║░╚███║██████╔╝███████╗██║░░██║░░░██║░░░╚█████╔╝██║░░██║
░░░╚═╝░░░╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░╚══╝╚═════╝░╚══════╝╚═╝░░╚═╝░░░╚═╝░░░░╚════╝░╚═╝░░╚═╝"""
print(Fore.LIGHTYELLOW_EX + TEXT)
print(Fore.CYAN + "by Dev_Cored\n\n" + Style.RESET_ALL)
INPUT_SIGN = Fore.YELLOW + Style.BRIGHT + ">" + Style.RESET_ALL
while True:
print(Fore.MAGENTA + "Chose the action: \n0 - Exit\n1 - Encrypt\n2 - Decrypt\nAdd f for your choice to save results in file. Example: 1f or 2f\n\n")
cmd = input(INPUT_SIGN)
if cmd == "0":
break
elif cmd == "1":
encrypt(False)
elif cmd == "1f":
encrypt(True)
elif cmd == "2":
decrypt(False)
elif cmd == "2f":
decrypt(True)
print(Fore.RED+Style.BRIGHT+"Programm has been closed. Thanks for using!")
input("Press enter 4 times to exit.")
input("...")
input("..")
input("." + Style.RESET_ALL)