mirror of
https://github.com/QuasarApp/Qt-AES.git
synced 2025-05-09 19:49:35 +00:00
f8d8e62dea
Qt-AES
AES Encryption in Qt. Porting of the Tiny-AES-C
Usage
Import the header file
...
QAESEncryption encryption(QAESEncryption::AES_128, QAESEncryption::ECB);
QByteArray encodedHex = encryption.encode(hexText, keyHex);
QByteArray decodedHex = encryption.decode(hexText, keyHex);
Tips
In AES the key needs to be 128/192/256 bits long, an MD5 Hash can be used to generate a 128 bit long QByteArray from a QString, a SHA256 can be used to generate a 256bit key.
Languages
C++
87.9%
C
8.6%
QMake
3.5%