Matteo Brichese e755ae6695 fixed typo
2017-07-06 14:17:58 -07:00
2017-07-06 14:17:58 -07:00
2017-07-06 14:09:36 -07:00
2017-07-06 14:09:36 -07:00
2017-07-06 13:49:28 -07:00

Qt-AES

Small and portable AES encryption class for Qt. Supports all key sizes - 128/192/256 and ECB/CBC modes

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. See the main.cpp file for references on usage

Description
No description provided
Readme Unlicense 172 KiB
Languages
C++ 87.9%
C 8.6%
QMake 3.5%