You are not logged in.

#1 2017-04-28 07:15:23

chrzyki
Member
Registered: 2016-10-20
Posts: 2

[SOLVED] openssl-1.0.2.k-1 decrypts, openssl-1.1.0.e-1 doesn't

Heya,

I've got a number of files that were encrypted with the openssl-1.0.* branch:

openssl aes-256-cbc -salt -pass KEY -in FILE -out FILE.OUT

They decrypt correctly with openssl-1.0.*:

openssl aes-256-cbc -d -salt -pass KEY -in FILE -out FILE.OUT

But they can't be decrypted (same key, same file, same command) with openssl-1.1.0.e-1:

bad decrypt
140552101531520:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:crypto/evp/evp_enc.c:535:

I'm a little bit clueless as how to proceed here. Is anyone else experiencing similar issues?

Last edited by chrzyki (2017-04-28 07:26:51)

Offline

#2 2017-04-28 07:25:59

chrzyki
Member
Registered: 2016-10-20
Posts: 2

Re: [SOLVED] openssl-1.0.2.k-1 decrypts, openssl-1.1.0.e-1 doesn't

I apologise for the unnecessary posting. After some more research I noticed that the default digest changed from 1.0 to 1.1. Everything works flawlessly if you provide the old digest (which was MD5 and now is SHA256):

openssl aes-256-cbc -d -md MD5 -salt -pass KEY -in FILE -out FILE.OUT

Offline

Board footer

Powered by FluxBB