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. Using QCA to decrypt PGP-encrypted files
Forum Updated to NodeBB v4.3 + New Features

Using QCA to decrypt PGP-encrypted files

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 204 Views 2 Watching
  • 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
    rjmx
    wrote on last edited by
    #1

    I can now successfully encrypt files to a PGP public key with QCA. I'm having trouble decrypting them, though, probably because I don't see a way of supplying the passphrase for the secret key to QCA::SecureMessage. I know about PasswordAsker, so I can get a password from the user, but how do I feed it to the secret key?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From a quick look, shouldn't that be provided to the constructor of the private key you will use for the decryption ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        From a quick look, shouldn't that be provided to the constructor of the private key you will use for the decryption ?

        R Offline
        R Offline
        rjmx
        wrote on last edited by
        #3

        @SGaist The only mention of a passphrase associated with a key that I could find in the entire documentation is for a QCA::PrivateKey, not a QCA::PGPKey private key. While it's possible that a QCA::PrivateKey could be used to decrypt a PGP message, the only way I can see to get a QCA::PrivateKey out of a PGP secret key is to write it to disk, and I'm loath to do that for security reasons.

        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