1. 首页
  2. 数据库
  3. 其它
  4. C#中字符串的加密的源码

C#中字符串的加密的源码

上传者: 2021-01-03 08:40:19上传 PDF文件 31KB 热度 8次
可以用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 dsac\u
下载地址
用户评论