任何人都可以解释一下RSAParameters的参数 [英] Anybody Can explain about the Parameters of RSAParameters

查看:97
本文介绍了任何人都可以解释一下RSAParameters的参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


任何机构都可以解释RSAParameters的参数
我看过参数p,d,e,q,...
我需要它的私钥和公钥

我知道了链接

http://msdn.microsoft.com/zh-cn/library/system.security.cryptography.rsaparameters%28v = vs.90%29.aspx [解决方案

这是一个复杂的参数.尝试在此处查看 DB和Back的证书 [http://msdn.microsoft.com/en-us/library/system.security.cryptography.rsaparameters%28v=vs.90%29.aspx[^]

i am using the sample code as like this
can anybody can say it was right or not
sample code:

//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);



they had give as that the
public key is {e,n} where n = result of the (P*Q)
Private key is {d, n} where n = result of the (P*Q)

where i had done is the correct thing or not in the sample code for the public and private keys

thanks alot

解决方案

It is a complex argument. Try to look here Certificates to DB and Back[^] and maybe you will find something that works for you.


这篇关于任何人都可以解释一下RSAParameters的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆