Replies: 1 comment 2 replies
-
Hi @Joakal , I'm not sure I understand your question. Calling const encryptedKey = await openpgp.encryptKey({ privateKey, passphrase });
console.log(encryptedKey.armor()) // this is the encrypted armored key Note that |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As title says.
Context: I wondered why I kept getting "Key packet is already encrypted" error. I've done it like this:
Thankfully, OpenPGP package said "Key packet is already encrypted" otherwise, the application would stupidly store passphrase-less private keys.
Beta Was this translation helpful? Give feedback.
All reactions