C#字符串转MD5码函数
来源:互联网 发布:002174游族网络雪球 编辑:程序博客网 时间:2024/06/10 03:25
/*测试环境:WinXP SP3、Visual Studio 2008 SP1、Visual Studio 2010 SP1更新日期:2014-04-23*/public string CalculateMD5Hash(string input){ MD5 md5 = System.Security.Cryptography.MD5.Create(); byte[] inputBytes = System.Text.Encoding.UTF8.GetBytes(input); byte[] hash = md5.ComputeHash(inputBytes); // step 2, convert byte array to hex string StringBuilder sb = new StringBuilder(); for (int i = 0; i < hash.Length; i++) {sb.Append(hash[i].ToString("X2")); } return sb.ToString();}//end func
0 0
- C#字符串转MD5码函数
- c#获取字符串md5
- C# 字符串md5加密
- c# MD5加密 DES加密解密字符串函数
- C#中采用SHA1或MD5加密字符串的函数
- c# md5 加密函数
- c# md5加密函数
- C# md5加密字符串string
- C#字符串格式化&MD5加密
- C#中的MD5实现函数
- 文件 字符串-->MD5码
- 字符串转MD5
- C#获取文件MD5值或者字符串MD5值方法
- c#中字符串MD5的计算方法
- C#下计算字符串MD5值
- C# 计算MD5哈希字符串
- [.net]两个针对字符串的MD5函数
- asp.net MD5加密字符串函数
- boosting(AdaBoost)算法
- Oracle 索引 详解
- Office使用技巧
- C06_C语言-变量作用域
- How can I add or import a picture to a QWidget?
- C#字符串转MD5码函数
- 解决Access文件越来越大的问题
- 开启3389常用终端命令
- 基于Web服务的应用、解决方案和开发平台
- 《Java解惑》系列——Java中的转义字符(为谜题14至17提供基础知识)
- 使用Genymotion调试出现错误INSTALL_FAILED_CPU_ABI_INCOMPATIBLE解决办法
- UITableView笔记
- 模块管理常规功能自定义系统的设计与实现(03--基本系统)
- 语言随记3