加密与解密函数 <%function decrypt(dcode) dim texts dim i for i=1 to len(dcode) texts=texts & chr(asc(mid(dcode,i,2))-i) next decrypt=texts end function function encrypt(ecode) Dim texts dim i for i=1 to len(ecode) texts=texts & chr(asc(mid(ecode,i,2))+i) next encrypt = texts end function %> <%=decrypt(123123)%> <a href="11111.asp?id=<%=decrypt("sdfasdfs")%>">111111111</a> <%abc=encrypt(request("id"))%><%=abc%>
推荐阅读
asp防范跨站点脚本攻击的的方法
防范跨站点脚本攻击的的方法 1.利用 空格 替换特殊字符 % < > { } ; & + - " ' ( ) 2.使用@,具体而言是将以下语句 exec="insert into user(username,psw,sex,department,phone,email,demo) values('"&username&"',>>>详细阅读
本文标题:asp加密解密函数decrypt
地址:http://www.17bianji.com/kaifa2/ASP/32297.html
1/2 1