Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Encryption in Qt

    General and Desktop
    5
    8
    14805
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rakor 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.

      1 Reply Last reply Reply Quote 0
      • K
        koahnig 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/

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply Reply Quote 0
        • L
          leon.anavi 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.

          http://anavi.org/

          1 Reply Last reply Reply Quote 0
          • C
            Code_ReaQtor 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.

            Please visit my open-source projects at https://github.com/Code-ReaQtor.

            1 Reply Last reply Reply Quote 0
            • R
              rakor 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 ;)

              1 Reply Last reply Reply Quote 0
              • M
                movemove9 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

                1 Reply Last reply Reply Quote 0
                • R
                  rakor 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.

                  1 Reply Last reply Reply Quote 0
                  • M
                    movemove9 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]

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post