Try something like this (altho I have PyCrypto)
from Crypto.Cipher import AES import base64 AES.key_size=128 iv="your iv" key="your key" crypt_object=AES.new(key=key,mode=AES.MODE_CBC,IV=iv) decoded=base64.b64decode(plain)
This will lead to decrypted text, but it will be padded with bytes so that it is a multiple of 16.
You should probably select the correct fill pattern and delete it accordingly
source share