16,554
社区成员
发帖
与我相关
我的任务
分享
Dim contentText = "10 00 90 03 00 35 72 30 30 30 30 30 30 30 30 30 30 30 30 09 56 23 01 00 10 10 13".Replace(" ", "")
Dim md5 = New System.Security.Cryptography.MD5CryptoServiceProvider
Dim md5_16 = BitConverter.ToString(md5.ComputeHash(Encoding.UTF8.GetBytes(contentText)), 4, 8).Replace("-", "")
Dim md5_32 = BitConverter.ToString(md5.ComputeHash(Encoding.UTF8.GetBytes(contentText))).Replace("-", "")
Console.WriteLine(md5_16)
Console.WriteLine(md5_32)
Public Function GetMd5() As String
Dim Data As Byte() = {10, 0, 90, 3, 0, 35, 72, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 9, 56, 23, 1, 0, 10, 10, 13}
Dim Md5 = New System.Security.Cryptography.MD5CryptoServiceProvider
Dim a = BitConverter.ToString(Md5.ComputeHash(Data))
Return a.ToString
End Function