asp 编码解码函数
来源:互联网 发布:2013网络十大神曲 编辑:程序博客网 时间:2024/05/18 06:09
<%
function encode(soStr)
for i=1 to len(soStr)
TempNum=hex(asc(mid(soStr,i,1)))
if len(TempNum)=4 then
encode=encode & "%"& left(cstr(TempNum),2) & "%"& right(cstr(TempNum),2)
else
Randomize
encode=encode &"%"& chr(72+int(rnd*18))& chr(72+int(rnd*18)) & "%" & cstr(TempNum)
end if
next
end function
function decode(x)
x=replace(x,"%","")
for i=1 to len(x)
if asc(mid(x,i,1))>=72 then
x=replace(x,mid(x,i,1),"0")
end if
next
for i=1 to len(x) step 4
decode=decode& chr(int("&H" & mid(x,i,4)))
next
end function
%>
function encode(soStr)
for i=1 to len(soStr)
TempNum=hex(asc(mid(soStr,i,1)))
if len(TempNum)=4 then
encode=encode & "%"& left(cstr(TempNum),2) & "%"& right(cstr(TempNum),2)
else
Randomize
encode=encode &"%"& chr(72+int(rnd*18))& chr(72+int(rnd*18)) & "%" & cstr(TempNum)
end if
next
end function
function decode(x)
x=replace(x,"%","")
for i=1 to len(x)
if asc(mid(x,i,1))>=72 then
x=replace(x,mid(x,i,1),"0")
end if
next
for i=1 to len(x) step 4
decode=decode& chr(int("&H" & mid(x,i,4)))
next
end function
%>
- asp 编码解码函数
- Asp:base64编码、解码函数
- Asp:base64编码、解码函数
- asp.net编码解码
- UTF8编码解码函数
- URL解码编码函数
- base64编码解码函数
- JS 编码 解码函数
- base64编码解码函数
- 全局函数----编码解码
- js编码解码函数
- Asp.Net 编码和解码
- ASP.NET编码与解码
- asp mvc C#编码解码
- ASP的解码函数
- JS编码,解码. asp.net(C#)对应解码,编码
- JS编码,解码. asp.net(C#)对应解码,编码
- ASP中实现的类似URLEncode的编码函数及对应解码函数
- 转换中文为unicode 转换unicode到正常文本
- 在NetBeans IDE中使用Java Web Start
- 公司网络故障总结
- asp文件操作
- Webservice 学习
- asp 编码解码函数
- VRML/X3D相关资源网站
- Websphere与Tomcat的差异
- 在xsl文档中显示空格
- 63个国外优秀测试网站地址
- 网页中插入flash,并传递参数
- 使用crond 在linux中定时执行任务
- 三层Web体系结构里的两种数据绑定模式
- 从打开的新窗口中传值到其父窗口