#IrisCTF2024 from json import JSONDecodeError, loads, dumps from binascii import hexlify, unhexlify from Crypto.Cipher import AES from Crypto.Random import get_random_bytes with open("flag") as f: flag = f.readline() key = get_random_bytes(16) def encrypt(plaintext: bytes) -> (bytes, bytes): iv = ge…