Closed jcolson closed 2 years ago
You can use pgp.decodeSecretKey to convert private key to bigints, and then use those bigints in ssh keygen.
One follow on question to this issue. Is there a way to create a PGP key by loading an ed25519 subkey from a file created by gpg's --export-secret-subkeys ? That can then, subsequently have decodeSecretKey called on it?
Thanks for your help!
Pgp keys depend on user's name/email/generation date. Ssh keys don't depend on this information. So, not really. You can generate both keys from one entropy piece though.
The last question had nothing to do with SSH; I was just wondering if your PGP library had the ability to represent (load from a file) a GPG key/subkey that had been exported from a GPG keyring via the gpg --export-secret-subkeys ?
No such feature, also it was not a design goal.
no worries, was just wondering.
is there a way that one could convert pgp ed25519 key to ssh ed25519 key format with this library? is there any interoperability between the ssh and pgp exports?