How can i read properties from given public key? #1514
-
I'm sorry for this beginner question, i'm very new to JS and OpenPGP.js. I want to read out the properties of an given public pgp key. I already found the class "key" (https://docs.openpgpjs.org/Key.html) Thank you for your support. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @NoobjavascriptCoder, which information do you want to access specifically? In your example, |
Beta Was this translation helpful? Give feedback.
Hi @NoobjavascriptCoder, which information do you want to access specifically?
In your example,
publicKey
is will be aPublicKey
instance, which is a subclass ofKey
, so you should be able to access all the methods ofKey
e.g.publicKey.getAlgorithmInfo()
.