bricke / Qt-AES

Native Qt AES encryption class
The Unlicense
501 stars 187 forks source link

Some of decrypted data is corrupted #28

Closed breakersvd closed 5 years ago

breakersvd commented 5 years ago

Hi

I am trying to decrypt data that encrypted with (php openssl) with AES_256 - CBC

the IV is = QByteArray iv = "0000000000000000";

the first section of the data is corrupted and the last is good

what is the problem and how to solve it ?

let me know if you need more info

bricke commented 5 years ago

Hello, can you send a sample code? In particular how you are decrypting it and how it was encrypted?

breakersvd commented 5 years ago

@bricke Thanks for your answer but the problem was solved, it was a wrong calculation of IV in my Code

Thanks