首页 新闻 会员 周边 捐助

关于C#产生的rsa密钥,如何让它是固定结果?

0
悬赏园豆:20 [已关闭问题] 关闭于 2013-05-17 10:36
RSACryptoServiceProvider CsharpRs = new RSACryptoServiceProvider();
            string publickey = @"<RSAKeyValue><Modulus>5m9m14XH3oqLJ8bNGw9e4rGpXpcktv9MSkHSVFVMjHbfv+SJ5v0ubqQxa5YjLN4vc49z7SVju8s0X4gZ6AzZTn06jzWOgyPRV54Q4I0DCYadWW4Ze3e+BOtwgVU1Og3qHKn8vygoj40J6U85Z/PTJu3hN1m75Zr195ju7g9v4Hk=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue>";
            CsharpRs.FromXmlString(publickey);
            byte[] CRsaB = CsharpRs.Encrypt(System.Text.Encoding.UTF8.GetBytes(RSAText.Text), false);
            //string CsharpStr = System.Text.Encoding.UTF8.GetString(CRsaB);
            CSharp_RsA.InnerText = Convert.ToBase64String(CRsaB);
Uoolo的主页 Uoolo | 初学一级 | 园豆:195
提问于:2013-05-02 15:50
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册