Module MD5
#Region "MD5加密Encrypt(ByVal sMessage, ByVal Code_Lenght)"
    Public Function Encrypt(ByVal sMessage As String, ByVal CodeLenght As Int16) As String
        If CodeLenght = 16 Then
            Encrypt = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sMessage, "MD5").ToLower().Substring(8, 16)
        ElseIf CodeLenght = 32 Then
            Encrypt = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sMessage, "MD5").ToLower()
        Else
            Encrypt = "00000000000000000000000000000000"
        End If
    End Function
#End Region
End Module

相关文章:

  • 2022-01-29
猜你喜欢
  • 2022-01-07
  • 2021-08-06
相关资源
相似解决方案