Recover PGP public key from private in bouncycastle

At the algorythmic level, you can restore the public key from the private one. But is there a way to do this in the bouncycastle library with PGP keys?

Thanks!

+4
source share
1 answer

in PGPPrivateKey there is a getPublicKeyPacket method, which in turn has a getKey method.

Isn't that what you are looking for?

+1
source

Source: https://habr.com/ru/post/1442505/


All Articles