I'm trying to decrypt a .tgz archive with OpenSSL in Windows.
I use this command:
openssl aes-256-cbc -d -a -pbkdf2 -in "C:\archive.tgz.enc" -out:"C:\decrypt.tgz"
Â
I'll get this error:
bad decrypt
74470000:error:1C800064:Provider routines:ossl_cipher_unpadblock:bad decrypt:providers\implementations\ciphers\ciphercommon_block.c:124:
Â
Can someone help me to figure out what is going on?
Thanks.
As the message appears to give a source file reference, it is probably an internal bug trap or assertion that fails. No matter what you provide for input, no program should do that.
As far as I can make out, it is not a standard Windows command. So ... report it as a bug to whereever you got that openssl from. After verifying that you have the latest version, and that you have installed it according to instructions.
On the very off chance that you have cited the command line correctly, take a second look at it: it doesn't look as if it is correct after '-out'.
Â