-
Is it possible to export my keypair to .pgp file to save for a backup> |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you have a Does that work for you? Feel free to share more details if you have specific requirements for this backup. |
Beta Was this translation helpful? Give feedback.
If you have a
Key
object (from e.g.openpgp.readKey
), you can simply callkey.armor()
and save that to a [text] file.If it's a decrypted private key, and you want to encrypt it first, you can call
openpgp.encryptKey
.If you're generating a key with
openpgp.generateKey
, you'll get an armored key pair by default (also encrypted, if you give a `passphrase), which you can again easily save to a file.Does that work for you? Feel free to share more details if you have specific requirements for this backup.