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. RSA key generation, encryption and decryption

RSA key generation, encryption and decryption

Scheduled Pinned Locked Moved General and Desktop
rsa
6 Posts 2 Posters 5.8k 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.
  • I Offline
    I Offline
    Illogica
    wrote on 6 Jul 2016, 14:33 last edited by
    #1

    What would be the fast and most efficient way to incorporate RSA key generation, encryption and decryption functionality in my Qt application?
    I have a server in Nodejs where the RSA management is trivial; on the client side (Qt) I'm still looking around for a good solution.
    I spent about an hour trying to understand what good can come out of Qca, but those guys seem to enjoy making your life difficult.
    Openssl seems to be overkill, Cripto++ is quite vast, too.
    I just need a bunch of RSA algorythms. Any suggestion?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VRonin
      wrote on 6 Jul 2016, 14:51 last edited by
      #2

      Openssl is already used by Qt so so I would just use that as you probably have to deploy it anyway

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      I 1 Reply Last reply 6 Jul 2016, 15:36
      0
      • V VRonin
        6 Jul 2016, 14:51

        Openssl is already used by Qt so so I would just use that as you probably have to deploy it anyway

        I Offline
        I Offline
        Illogica
        wrote on 6 Jul 2016, 15:36 last edited by
        #3

        @VRonin Thanks for the prompt response. Yes, there is some QtSsl class and OpenSSL support, but all the RSA goodies are not exposed to he programmer.

        1 Reply Last reply
        0
        • I Offline
          I Offline
          Illogica
          wrote on 6 Jul 2016, 15:42 last edited by
          #4

          This is going to sound ridiculous, but using pure javascript libraries via QML seems to be a much easier solution.

          1 Reply Last reply
          0
          • V Offline
            V Offline
            VRonin
            wrote on 6 Jul 2016, 15:45 last edited by
            #5

            I meant that since yo probably have to deploy openssl libraries anyway you might as well use OpenSSL directly.
            can this help?

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            I 1 Reply Last reply 6 Jul 2016, 15:49
            0
            • V VRonin
              6 Jul 2016, 15:45

              I meant that since yo probably have to deploy openssl libraries anyway you might as well use OpenSSL directly.
              can this help?

              I Offline
              I Offline
              Illogica
              wrote on 6 Jul 2016, 15:49 last edited by
              #6

              @VRonin Yes, I've seen that example. It's useful, anyway I'd ship about 4 megabytes of libraries just for the RSA algorithms. Also, I'm planning to deploy on Android so I'd have to find out an OpenSSL build for arm. Sounds like an overly complicated way to use RSA.

              1 Reply Last reply
              0

              5/6

              6 Jul 2016, 15:45

              • Login

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