asp.net使用md5加密
作者: Admin | 来源:本站 | 点击: | 发布时间: 2008-05-06
自定义标签 art-ad 未创建
代码如下:
#region asp.net使用md5加密
public string strmd5(string str)
{
System.Security.Cryptography.MD5 md5;
md5 = System.Security.Cryptography.MD5.Create();
return System.BitConverter.ToString(md5.ComputeHash(System.Text.Encoding.Default.GetBytes(str))).Replace("-", "");
}
#endregion
