摘要: 1.用RSACryptoServiceProvider签名验签, 私钥加密,公钥验证RSACryptoServiceProvider 1 //生成公钥私钥对 2 byte[] messagebytes = Encoding.UTF8.GetBytes("luo罗"); 3 RSACryptoServiceProvider oRSA = new RSACryptoServiceProvider(); 4 string privatekey = oRSA.ToXmlString(true); 5 string publickey = oRSA.ToXmlString(false 阅读全文
posted @ 2011-08-13 22:32 Hanf 阅读(3664) 评论(0) 推荐(0) 编辑
Copyright © 2008-2016 Hanf All Rights Reserved