Encryption in Qt
-
wrote on 15 Aug 2013, 10:19 last edited by
Hi there!
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.
-
wrote on 15 Aug 2013, 10:50 last edited by
welcome to devnet
You can find in the wiki "this article from Andre":http://qt-project.org/wiki/Simple_encryption And here is a link found by google "on QCA":http://delta.affinix.com/qca/
-
wrote on 15 Aug 2013, 11:33 last edited by
[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.
-
wrote on 16 Aug 2013, 01:04 last edited by
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.
-
wrote on 16 Aug 2013, 07:12 last edited by
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 ;) -
wrote on 6 May 2014, 04:18 last edited by
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,
Kev
-
wrote on 6 May 2014, 06:02 last edited by
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.
-
wrote on 6 May 2014, 06:06 last edited by
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]