Qt + OpenSSL & EVP_DecryptFinal_ex error bad decrypt
-
Hi,
Did you got the OpenSSL part working without Qt ?
What examples are you referring to ? -
Hi SGaist!
I'm using
vh/0fb1R3awZqWeKpYDqlCafaRS7s49EIAPBmZXKgLo=
for testing. The encoded string ist "this is a test". My key is "test" (md5).
echo vh/0fb1R3awZqWeKpYDqlCafaRS7s49EIAPBmZXKgLo= | openssl.exe enc -d -a -A -aes-128-cbc -iv be1ff47dbd51ddac19a9678aa580ea94 -K 098f6bcd4621d373cade4e832627b4f6
This works, it gets decrypted as expected like:
YÈ])-EÖºà¯ÌSå+£gthis is a test
In my code i get a bad decrypt. I did google a lot about what may the problem. I did test and try other OpenSSL versions as well. The only think i did not try yet, is building OpenSSL myself but i'm not sure if this makes any difference.
Thanks!
-
There's no need to build your own version of OpenSSL,. My question was rather: did you got EVP API working without using Qt at all ?
-
No, I mean, just using plain C with char arrays etc.
-
Then you should start by doing that. Ensure that you get it working correctly with the raw API and then you can start integrating it your GUI application.
-
@qDebug said in Qt + OpenSSL & EVP_DecryptFinal_ex error bad decrypt:
OK, so no one got it working in Qt yet.
How do you know?