Closed passy1977 closed 5 years ago
This may be because your "Carte di credito" is exacly 16 bytes, padding is not added and when removed it clears the string, I'll look into it, thanks!
Please check out SHA 3d4c882683e146c0b7665b6aad6f682b5c48f205
There was a PR that solves this issue, I also added a new test case based on a 16 byte string
Great! Now I try it. Thanks a lot
Hi, I think to find a problem in removePadding method.
below the code: QAESEncryption encryption(QAESEncryption::AES_256, QAESEncryption::CBC);
this is the result:
"\x13\xE8\x1ES\x1Bv\xBF\xDCp\xF4i\xB7\xF2\xB0\xD1" | "Carte di credito" | ""_
the value of encodeText and decodeText I think are ok but decodedString is empty after removePadding assignment.
I don't know cryptography well and I don't know how to help you.
This code is tested on: MacBook Pro 2017, macOS 10.14 and QT 5.11.2
Thanks for the nice project
Bye