简体   繁体   English

在bouncycastle中从私有恢复PGP公钥

[英]Restore PGP public key from private in bouncycastle

In algorythmic level it is possible to restore public key from private. 在algorythmic级别,可以从私有中恢复公钥。 But is there a way to do it in bouncycastle library with PGP keys? 但是有没有办法在带有PGP密钥的bouncycastle库中做到这一点?

Thanks! 谢谢!

in PGPPrivateKey there is the method getPublicKeyPacket, which in turn has the method getKey. PGPPrivateKey中有方法getPublicKeyPacket,它依次具有方法getKey。

Isn't it what you're looking for? 这不是你想要的吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM