Is it possible to decrypt a file in Python using OpenSSL?

Viewed 37

In windows CMD I'm using the following command line:

openssl.exe bf -in inputfile.bin -out outputfile.tar.gz -d -k 123mysecretkeygoeshere456

This works perfectly. The encrypted binary file is decrypted and can be opened in 7zip.

How could I do the same thing in Python? I am not finding anything online.

1 Answers

How about:

import os
os.system("openssl.exe bf -in inputfile.bin -out outputfile.tar.gz -d -k 123mysecretkeygoeshere456
Related