Thanks to Olvin Roght, I digged deeper into the topic and found the solution for my case:
from Crypto.Cipher import AES
import Crypto.Cipher.AES
from binascii import hexlify, unhexlify
key = unhexlify(my_key)
IV = unhexlify(my_iv)
decipher = AES.new(key, AES.MODE_CBC, IV)
ciphertext = open(in_filename, "rb").read()
plaintext = decipher.decrypt(ciphertext)
f = open(out_filename, 'wb')
binary_format = bytes(plaintext)
f.write(binary_format)
f.close()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…