MD5生成函数
来源:互联网 发布:泰语中文翻译软件 编辑:程序博客网 时间:2024/06/06 06:55
souce: if you know, please tell me. thanks!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Security.Cryptography;
/// <summary>
/// function to generate MD5
/// </summary>
/// <param name="inStr"></param>
/// <returns></returns>
private string calculatemd5(string inStr)
{
MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
byte[] InBytes = Encoding.GetEncoding("GB2312").GetBytes(inStr);
byte[] OutBytes = md5.ComputeHash(InBytes);
string OutString = "";
for (int i = 0; i < OutBytes.Length; i++)
{
OutString += OutBytes[i].ToString("x2");
}
return OutString;
}
- MD5生成函数
- 密码加密生成函数Md5
- Python生成文件md5校验值函数
- C#生成MD5的函数代码
- md5生成
- Linux下c基于openssl生成MD5的函数
- MD5 函数
- MD5函数
- MD5函数
- MD5函数
- MD5函数
- Oracle生成MD5
- 生成MD5编码
- Java生成MD5
- java 生成MD5
- md5的生成
- C#生成MD5哈希码
- 数据库自动生成MD5
- VB实现文件上传到FTP服务器
- WIN32控件使用大全
- Java对象转换XML文件:XStream+XPP
- 【动态规划】【RQ429】词链
- 软件测试
- MD5生成函数
- 与08胡润富豪榜对话
- Javascript函数类型判断完美解决方案
- css hack
- smarty乱码问题
- get hardware information using c#
- 中国“黑客” ,麻烦你,丢脸回家丢,别丢到国外去了
- linux常用命令之文件打包/解压与安装
- 提取文件夹下文件名