Aesy

Please aes-decrypt the flag for me: key: 8e29bd9f7a4f50e2485acd455bd6595ee1c6d029c8b3ef82eba0f28e59afcf9f ciphertext: abcdd57efb034baf82fc1920a618e6a7fa496e319b4db1746b7d7e3d1198f64f

Given this in the question, we can tell all we have to do is decrypt this ciphertext and the algorithm used is AES. So, i created a python script to help me decode it

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)
Decrypted flag: amateursCTF{w0w_3cb_a3s_1s_fun}☺

Thus giving us the flag, amateursCTF{w0w_3cb_a3s_1s_fun}

Last updated