bricke / Qt-AES

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

Convert QByteArray to QString #55

Closed seyyedjavadrazavi closed 1 year ago

seyyedjavadrazavi commented 1 year ago

I use AES_128 for encoding. After encoding, I want to store the ciphertext to the Sqlite DB. To tackle this, I need to convert the qbytearray to qstring. I tried all possible way on the web but the output of the convertors are not the same as the qbytearray. Is there any other option for me? Foe example is other encoding better than AES_128 for my purpose? Or other option for converting to QString?

bricke commented 1 year ago

I would keep the QByteArray and insert it into the Sqlite as a BLOB