摘要: public void Encrypt() { //加密解密用到的公钥与私钥 RSACryptoServiceProvider oRSA = new RSACryptoServiceProvider(); string privatekey = oRSA.ToXmlString(true);//私钥 string publickey = oRSA.ToXmlString(false);//公钥 privatekey = XDocument.Load(Server.MapPath("privatekey.xml")).ToString(); publickey = XDocu 阅读全文
posted @ 2013-12-23 09:37 sulin 阅读(652) 评论(0) 推荐(0)