-
Notifications
You must be signed in to change notification settings - Fork 1
/
X-Encoder.py
executable file
·46 lines (40 loc) · 1.04 KB
/
X-Encoder.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
#!/usr/bin/python
import base64
import sys
print " __ __ ______ _ "
print " \ \ / / | ____| | | "
print " \ V / ___ | |__ _ __ ___ ___ __| | ___ _ __ "
print " > < ___ | __| | '_ \ / __/ _ \ / _` |/ _ \ '__|"
print " / . \ | |____| | | | (_| (_) | (_| | __/ | "
print " /_/ \_\ |______|_| |_|\___\___/ \__,_|\___|_| "
print " https://github.com/Xpykerz "
print " Ask: https://t.me/MQ_XZ "
print "\n"
def encode():
str = raw_input("Enter Text to Encode:\t")
str = str.encode('base64','strict');
print "\nEncoded Text:\n"
print str
St()
def decode():
str = raw_input("Enter Text to decode:\t")
str = str.decode('base64','strict');
print "\nDecoded Text:\n"
print str
St()
def St():
print "1) Encoding"
print "2) Decoding"
print "3) Exit"
select = input ("Select : ")
if select==1:
encode()
elif select==2:
decode()
elif select==3:
print "\nSupport @Xpykerz"
sys.exit()
else :
print "Wrong selection"
St()
St()