Aesy
from Crypto.Cipher import AES
import binascii
def aes_decrypt(key, ciphertext):
key = binascii.unhexlify(key)
ciphertext = binascii.unhexlify(ciphertext)
cipher = AES.new(key, AES.MODE_ECB)
plaintext = cipher.decrypt(ciphertext)
return plaintext.decode('utf-8')
key = "8e29bd9f7a4f50e2485acd455bd6595ee1c6d029c8b3ef82eba0f28e59afcf9f"
ciphertext = "abcdd57efb034baf82fc1920a618e6a7fa496e319b4db1746b7d7e3d1198f64f"
flag = aes_decrypt(key, ciphertext)
print("Decrypted flag:", flag)
Last updated