def decrypt(self, enc):
    """
        Requires hex encoded param to decrypt
        """
enc = enc.decode('hex')
iv = enc[:16]
enc = enc[16:]
cipher = AES.new(self.key, AES.MODE_CBC, iv)
return unpad(cipher.decrypt(enc))
if __name__ == '__main__':
    key = '140b41b22a29beb4061bda66b6747e14'
ciphertext = (
    """4ca00ff4c898d61e1edbf1800618fb2828a226d160dad07883d04e008a7897ee2e4b7465d5290d0c0e6c6822236e1daafb94ffe0c5da05d9476be028ad7c1d81"""
    )
key = key[:32]
decryptor = AESCipher(key)
plaintext = decryptor.decrypt(ciphertext)
print('%s' % plaintext)
Заполнение расшифровки AES с помощью PKCS5 Python