摘要:
可以用DSA和RSA,如:using System;using System.Text;using System.Security.Cryptography; class dsacrypto_SignData { public static void Main(String[] args){ //先要将字符串转换为字节数组,这与编码有关。 String str = "this is a test."; byte[] bytes = Encoding.ASCII.GetBytes(str); //选择签名方式,有RSA和DSA DSACryptoServiceProvider 阅读全文
posted @ 2011-07-21 01:59
骑着毛驴去编程
阅读(308)
评论(0)
推荐(0)