This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64, hashlib | |
algoritmi = ('b16', 'B16', 'b32', 'B32', 'b64', 'B64', 'md5', 'mD5', 'MD5', 'Md5', 'sha1', 'shA1', 'sHA1', 'SHA1', 'SHa1', 'Sha1', 'ShA1', 'sHa1', 'sha224', 'shA224', 'sHA224', 'SHA224', 'SHa224', 'Sha224', 'ShA224', 'sHa224', 'sha256', 'shA256', 'sHA256', 'SHA256', 'SHa256', 'Sha256', 'ShA256', 'sHa256', 'sha384', 'shA384', 'sHA384', 'SHA384', 'SHa384', 'Sha384', 'ShA384', 'sHa384', 'sha512', 'shA512', 'sHA512', 'SHA512', 'SHa512', 'Sha512', 'ShA512', 'sHa512') | |
sistemi = ('bin', 'biN', 'bIN', 'BIN', 'BIn', 'Bin', 'BiN', 'bIn', 'oct', 'ocT', 'oCT', 'OCT', 'OCt', 'Oct', 'OcT', 'oCt', 'hex', 'heX', 'hEX', 'HEX', 'HEx', 'Hex', 'HeX', 'hEx') | |
CryPy = """ | |
____ _____ | |
/ __ \ | ___ \ | |
| / \/_ __ _ _| |_/ / _ | |
| | | '__| | | | __/ | | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64, time | |
print("Creato da Andrea Dipace per codificare/decodificare file.txt in base64\nRilasciato sotto licenza GNU GPL\nQuesto programma puo' codificare e decodificare file solo con estensione .txt\n\nDevi:\ne - codificare un file\nd - decodificare un file\n") | |
def Modalita(): | |
global modalita | |
modalita = raw_input("command: ") | |
modalita.strip() | |
if modalita not in ('e', 'd'): | |
print("\nInserisci 'e' per codificare un file, 'd' per decodificare. Riprova.\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random, time, string | |
possibilita = ['1', '2', '3', '4', '5', '6', '7', '8'] | |
print """ | |
_____ | |
| __ \ | |
| | \/ ___ _ __ ___ _ __ _ __ __ _ ___ ___ | |
| | __ / _ \ '_ \ / _ \ '__| '_ \ / _` / __/ __| | |
| |_\ \ __/ | | | __/ | | |_) | (_| \__ \__ \ |