I have a file which was encrypted using Linux command line tool openssl. eg: openssl smime -encrypt -binary -aes-256-cbc -in 400000005f16bec1298bbc0c0079371de75e -out 400000005f16bec1298bbc0c0079371de75e_enc -outform DER /usr/local/etc/key.pem
How to decrypt this file in Python? Any help or suggestion will be appreciated. Thank you.
Edit-1: I have /usr/local/etc/key.pem is available with me, it has private key and certificate details and I must use this pem file to decrypt/encrypt the files in Python
Edit-2: Used the C functionality which I have to encrypt/decrypt the file. Invoking the C binary from Python code worked for me.