任何机构可以解释RSAParameters的参数,我曾见过像P,d,E,Q参数,...我需要从它的私钥和公钥
我得到了链接
http://msdn.microsoft.com/en-us/library/system.security.cryptography.rsaparameters%28v=vs.90%29.aspx[^]
我正在使用示例代码,因为任何人都可以说它是正确的或不是示例代码:
//Generate a public/private key pair.
RSACryptoServiceProvider RSA = new RSACryptoServiceProvider();
//Save the public key information to an RSAParameters structure.
RSAParameters RSAKeyInfo = RSA.ExportParameters(true);
//public key
TextBox5.Text = Convert.ToBase64String(RSAKeyInfo.Exponent);
// private key
TextBox6.Text = Convert.ToBase64String(RSAKeyInfo.D);
Run Code Online (Sandbox Code Playgroud)
他们给出了公钥是{e,n},其中n =(P*Q)私钥的结果是{d,n},其中n =(P*Q)的结果
我所做的是公钥和私钥的示例代码中是否正确
非常感谢