I am creating my own problems that people have to solve and I want to make a grader check if a user put in the right answers and then reward them with a flag.

My code for one particular problem:

from Crypto.Cipher import AES
from binascii import hexlify
from binascii import unhexlify

message = input("What is the answer to the third question? ")

obj = AES.new(password, AES.MODE_CFB, 'This is an IV456')

ciphertext = obj.encrypt(message)

obj2 = AES.new(passwordtwo, AES.MODE_CFB, 'This is an IV456')