<%@ Language=VBScript %
<%
'函数1:
'将字符串转换成二进制
Function StoB(varstr)
str2bin = ""
For i = 1 To Len(varstr)
varchar = Mid(varstr, i, 1)
str2bin = str2bin & ChrB(AscB(varchar))
Next
StoB = str2bin
End Function
'函数2:
'将每两个字符前面加"&H"表示是十六进制,然后把"&H??"加到"chr()"里面
'具体功能是什麽,我也说不清,反正是必须的
Function SS(varstr)
BB = ""
For i = 1 To Len(varstr)/2
varchar = "&H" & Mid(varstr, 2*i-1, 2)
BB=BB & chr(varchar)
Next
SS = BB
End Function
img="00001414faf5f0fb6df0fbadf0fbdd801bfc70e...[ 查看全文 ]