c# RSA extract public key from private key

前端 未结 3 731
忘了有多久
忘了有多久 2020-12-21 10:28

Is there a way to extract public key from private key in c#? Becouse if i do ToXMLString() then i can set if i want public key information saved with the privat

3条回答
  •  渐次进展
    2020-12-21 11:10

    Take the modulus from the private key, and the public exponent is - most likely - 65537. All Microsoft cryptosystems I've seen so far produce public keys with that exponent. The combination of public exponent and modulus is the public key.

提交回复
热议问题