Using QCA to decrypt PGP-encrypted files
-
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?
-
Hi,
From a quick look, shouldn't that be provided to the constructor of the private key you will use for the decryption ?
-
@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.