Replies: 1 comment 6 replies
-
It looks like your key is only partially encrypted. await Promise.all(
privateKey.getKeys().map(async ({keyPacket}) => {
if (keyPacket.isDecrypted()) {
await keyPacket.encrypt(passphrase);
keyPacket.clearPrivateParams();
}
});
) then try again to decrypt PS: when setting |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am having already generated pgp private key which is a valid key trying to encrypt a message using following code
getting error in decrypting the key i.e. Error: Error decrypting private key: Key packet is already decrypted.
And if I dont decrypt and encrypt the payload I am getting Error encrypting message: Signing key is not decrypted.
Beta Was this translation helpful? Give feedback.
All reactions