Using python implements AES algorithm
#src is a 4x4-matirx of int64
#key is a 16-length list of int64
src = np.array([
[0x32,0x43,0xf6,0xa8],
[0x88,0x5a,0x30,0x8d],
[0x31,0x31,0x98,0xa2],
[0xe0,0x37,0x07,0x34]
],dtype=np.int64)
key = np.array([0x2b,0x7e,0x15,0x16,0x28,0xae,0xd2,0xa6,\
0xab,0xf7,0x15,0x88,0x09,0xcf,0x4f,0x3c],dtype=np.int64)
#create an object
aes = AES(src,key)
#加密
ans = aes.encode()
#解密
ans = aes.decode()