level 1
怎么去MD5加密成跟php一样了
参考网址
http://stackoverflow.com/questions/9034479/how-to-hash-a-utf-8-string-in-classic-asp
instrs = “865你好1435288TTLZYDA”
Set ascs = CreateObject("System.Text.UTF8Encoding")
Set enc = CreateObject("System.Security.Cryptography.MD5CryptoServiceProvider")
bytes = ascs.GetBytes_4(instrs)
bytes = enc.ComputeHash_2((bytes))
outstr = ""
'Convert the Byte Array to a Hex string
For pos = 1 To LenB(bytes)
outstr = outstr & LCase(Right("0" & Hex(AscB(MidB(bytes, pos, 1))), 2))
Next
Translate = outstr
输出来的是跟php MD5出来的一样
正确的
md5加密
2016年03月09日 09点03分