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

daichong75415 6 0 PDF 2021-01-03 08:01:18

可以用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

用户评论
请输入评论内容
评分:
暂无评论