Encryption in Qt
My programs store a lot of data in SQLite-Files. My next project should hide the data against useraccess. So I'd like to encrypt the data before writing it to the database. To use an approved standard I'd like to use AES-encryption.
I learned that Qt has no real build in encryption-functionality.
So what would you recommend me to do? I saw there are projects like botan und qca, but its really hard for me to follow them. I don't really know how up to date those projects are.
Thanks for your help.
welcome to devnet
[quote author="rakor" date="1376561969"]To use an approved standard I'd like to use AES-encryption.[/quote]
The add-on "Qt Cryptographic Architecture - QCA":http://delta.affinix.com/qca/ seems like a good solution that supports AES. It depends on OpenSSL library.
You can also use the "OpenSSL Crypto library":http://www.openssl.org/docs/crypto/crypto.html to "encrypt data with AES":http://www.openssl.org/docs/crypto/EVP_EncryptInit.html directly.
Use this plugin "QtCipherSqlitePlugin":https://github.com/devbean/QtCipherSqlitePlugin
I am using this plugin (at least, a modified version of this plugin, since I don't want how the author designed it :D) for almost all my projects that needed database encryption. You don't need to encrypt your data (manually), anymore. The plugin will do it for you!!!
Take a look at my blog at "QtSimplify":http://qtsimplify.blogspot.com/2013/04/custom-sql-driver-non-plugin-way.html for details.
Thank you all for your reply.
I will have a look at all of your links and be back when I have done reading it ;)
See this "post":http://qt-project.org/forums/viewthread/3868/#175068 , I answered on another thread, I recommend use botan for your encryption/decryption needs.
Thanks I also wanted to use Botan but had difficulties compiling it. I'll try to compile Botan with the help of your blog again later today.
Rakor, I would be happy to provide compiled library which I use mingw32, that sounds good?
[quote author="rakor" date="1399356125"]Thanks I also wanted to use Botan but had difficulties compiling it. I'll try to compile Botan with the help of your blog again later today.[/quote]