C# 字符串md5加密
发布日期:2021-06-30 19:37:47 浏览次数:3 分类:技术文章

本文共 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;}

 

转载地址:https://linxinfa.blog.csdn.net/article/details/46366353 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:unity3D 拖拽旋转3D物体
下一篇:unity 根据纪元时间(1970/1/1)转换为DateTime

发表评论

最新留言

留言是一种美德,欢迎回访!
[***.207.175.100]2024年04月14日 06时46分38秒