from Crypto.Cipher import AES
from Crypto import Random
key = b'Sixteen byte key'
iv = Random.new().read(AES.block_size)
cipher = AES.new(key, AES.MODE_CFB, iv)
msg = iv + cipher.encrypt(b'Attack at dawn')
ZnJvbSBDcnlwdG8uQ2lwaGVyIGltcG9ydCBBRVMKZnJvbSBDcnlwdG8gaW1wb3J0IFJhbmRvbQoKa2V5ID0gYidTaXh0ZWVuIGJ5dGUga2V5JwppdiA9IFJhbmRvbS5uZXcoKS5yZWFkKEFFUy5ibG9ja19zaXplKQpjaXBoZXIgPSBBRVMubmV3KGtleSwgQUVTLk1PREVfQ0ZCLCBpdikKbXNnID0gaXYgKyBjaXBoZXIuZW5jcnlwdChiJ0F0dGFjayBhdCBkYXduJyk=