bricke / Qt-AES

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

AES implementation is really slow for big data #46

Closed pH-Valiu closed 2 years ago

pH-Valiu commented 2 years ago

When I try to encrypt data in the size of 1-2 GB it takes about 10 min to encrypt it with a 256 bit key in CBC mode with an 128 bit IV (Running Windows 10, i7-7700HQ, 24GB RAM). Anything I could do to increase the speed?

Code snippet:

bigFileData.size() <== 1.9GB key <== created with SHA256 iv <== created with Blake2s-128

QByteArray encodedText = aes.encode(bigFileData, key, iv);

pH-Valiu commented 2 years ago

I got a solution and am currently working on uploading it.