Qt cross-platform class which allows transparently encrypt/decrypt QFileDevice using AES-CTR algorithm with OpenSSL library.
Name | Version | Comment |
---|---|---|
Qt | >= 5.1.0 (supports Qt6 as well) | adapted for Qt 6.2 |
C++ compiler | supporting C++11 (i.e. gcc 4.6+) | |
OpenSSL | >= 1.0.0 | didn't test with older versions, but it may work |
Copy 2 files (cryptfiledevice.cpp and cryptfiledevice.h) into your Qt project. See examples/
for examples on using this class.
In examples folder there are 2 example projects.
-
CryptFileDeviceExample - test general operations with file and compare results with QFile object.
-
WebViewWithCryptFileDevice - show how to display the user's encrypted content (image).
You can find the docker image ready to build & run CryptFileDeviceExample without any additional preparations here
Questions and suggestions can be sent to email: [email protected]
Please report any suggestions, feature requests, bug reports, or annoyances to the Github issue tracker.
CrypFileDevice is licensed under MIT.
Special thanks to Ruslan Salikhov for testing and sensible suggestions.
Thanks to habrauser Disasm for suggestion.