'获得字符串的MD5格式
Function GetMD5(ByVal StrValue As String) As String
Return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(StrValue, "md5")
End Function
博客展示了一个获取字符串MD5格式的函数。函数名为GetMD5,接收一个字符串参数,通过System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile方法将字符串转换为MD5格式并返回。
'获得字符串的MD5格式
Function GetMD5(ByVal StrValue As String) As String
Return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(StrValue, "md5")
End Function
221
3307

被折叠的 条评论
为什么被折叠?