-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathdecifra_base64.py
More file actions
executable file
·36 lines (28 loc) · 896 Bytes
/
decifra_base64.py
File metadata and controls
executable file
·36 lines (28 loc) · 896 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
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/python3
#-*- encoding: utf-8 -*-
#Programa para decodificar string na base64
import os
import base64
def intro():
print("\nFlávio Oliveira - Decifra Base64")
print("www.github.com/oliveiradeflavio\n")
def decifra():
while True:
try:
recebe = input("Digite a frase codificada (0 para sair): ")
if recebe == str(0):
print("saindo")
break
decodifica = base64.b64decode(recebe)
print("\nFrase Decodificada: ", decodifica)
input("Qualquer tecla continua")
os.system("sleep 0.5")
os.system("clear")
intro()
except:
print("Frase não está na base64")
os.system("sleep 1")
os.system("clear")
intro()
intro()
decifra()