博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
C# 字符串md5加密
阅读量:1983 次
发布时间:2019-04-27

本文共 326 字,大约阅读时间需要 1 分钟。

using System.Security.Cryptography;public static string MD5Encrypt(string str){    string cl = str;    string pwd = "";    MD5 myMd5 = MD5.Create();    byte[] bytes = myMd5.ComputeHash(Encoding.UTF8.GetBytes(cl));    for (int i = 0; i < bytes.Length; ++i)    {        pwd = pwd += bytes[i].ToString("x2");    }    return pwd;}

 

转载地址:http://hrzvf.baihongyu.com/

你可能感兴趣的文章
leetcode 309 最佳买卖股票含冷冻期
查看>>
leetcode 714 买卖股票的最佳时机含手续费
查看>>
leetcode3 无重复字符的最长子串
查看>>
leetcode 76 最小覆盖子串
查看>>
leetcode 1143. 最长公共子序列
查看>>
leetcode 83. 删除排序链表中的重复元素
查看>>
智能体 Intelligent Agent
查看>>
Network Compression网络压缩(一)
查看>>
GAN系列(零)—— GAN的发展(两条路线)
查看>>
Conditional GAN (CGAN) 条件生成网络
查看>>
强化学习(三) —— Policy Gradient 策略梯度
查看>>
docker安装oracle(win10)
查看>>
Cloudera Quickstart & HUE
查看>>
HUE
查看>>
CDH
查看>>
行为树 BT
查看>>
Cassandra & CQL
查看>>
Oracle数据库
查看>>
Oracle数据库命令
查看>>
plsql
查看>>