<% function md5(str) md5 = bytesToHex(md5hashBytes(stringToUTFBytes(str))) endfunction
function stringToUTFBytes(aString) dim UTF8 : set UTF8 = Server.CreateObject("System.Text.UTF8Encoding") stringToUTFBytes = UTF8.GetBytes_4(aString) endfunction
function md5hashBytes(aBytes) dim MD5 : set MD5 = Server.CreateObject("System.Security.Cryptography.MD5CryptoServiceProvider")
近期评论