-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhello.py
More file actions
25 lines (22 loc) · 848 Bytes
/
Copy pathhello.py
File metadata and controls
25 lines (22 loc) · 848 Bytes
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
import base64
print("https://t.me/+qIcOhFZmtWNkOTQy")
while True :
num = input("""
1 > Encode
2 > Decode
>> : """)
if num == "1":
encode_text = input("Enter Your Text For Encode It >> : ")
encode_hash = base64.b64encode(encode_text.encode('UTF-8')).decode('ascii')
print("--------------------------------")
print("Doen : "+ encode_hash)
print("----------------------------------")
elif num == "2":
decode_text = input("Enter Your Hash For Decode It >> :")
decode_hash = base64.b64decode(decode_text)
decodeit = decode_hash.decode('UTF-8')
print("----------------------------------")
print("Done : "+ decodeit)
print("-------------------------------------")
else:
print("Type Just 1 Or 2 !!")