[Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1175: gb.openssl decryption gives wrong value

Benoît Minisini gambas at ...1...
Sun Sep 17 00:00:50 CEST 2017

-------- Message transféré --------
Sujet : [Gambas Bug Tracker] Bug #1175: gb.openssl decryption gives wrong value
Date : Sat, 16 Sep 2017 21:57:45 GMT
De : bugtracker at ...3416...
Pour : isafiur at ...626..., g4mba5 at ...626...


Comment #1 by Tobias BOEGE:

Fixed in https://gitlab.com/gambas/gambas/commit/fe4f54a3be49a9e9759bee02b24ac193ee6fae21

Just for the record, on my system I get:

    Checking cipher (salted) aes256...
    Output is:      U2FsdGVkX18BI0VniavN739nG+GvCsWP9WAarEh7TJQ=
    Should read:    U2FsdGVkX18BI0VniavN791xVvm/LisvE9fpNdKA1/o=
    Decrypted:      hmsrep935
    Should read:    hmsrep935

This is because in OpenSSL 1.1.0 (25 Aug 2016) the default digest used by the "openssl enc" program for salted encryption was changed from MD5 to SHA256. gb.openssl still uses MD5, so you get a different ciphertext. Maybe I should switch to SHA256 as well?

Tobias BOEGE changed the state of the bug to: Fixed.

More information about the User mailing list