aes_in_ecb_mode.py (172B)
1 from Crypto.Cipher import AES 2 3 file = open('files/7.txt').read().decode("base64") 4 5 key = "YELLOW SUBMARINE" 6 cipher = AES.new(key, AES.MODE_ECB) 7 8 print cipher.decrypt(file)
cryptopalshttps://cryptopals.com/ | |
| Log | Files | Refs |