Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Encryption in Qt
QtWS25 Last Chance

Encryption in Qt

Scheduled Pinned Locked Moved General and Desktop
8 Posts 5 Posters 15.2k Views
  • 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 Offline
    R Offline
    rakor
    wrote on last edited by
    #1

    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
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      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
      0
      • L Offline
        L Offline
        leon.anavi
        wrote on last edited by
        #3

        [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
        0
        • C Offline
          C Offline
          Code_ReaQtor
          wrote on last edited by
          #4

          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
          0
          • R Offline
            R Offline
            rakor
            wrote on last edited by
            #5

            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
            0
            • M Offline
              M Offline
              movemove9
              wrote on last edited by
              #6

              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
              0
              • R Offline
                R Offline
                rakor
                wrote on last edited by
                #7

                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
                0
                • M Offline
                  M Offline
                  movemove9
                  wrote on last edited by
                  #8

                  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
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved