当前位置:主页 > 查看内容

asp加密解密函数decrypt

发布时间:2021-07-10 00:00| 位朋友查看

简介:加密与解密函数 %functiondecrypt(dcode) dimtexts dimi fori=1tolen(dcode) texts=textschr(asc(mid(dcode,i,2))-i) next decrypt=texts endfunction functionencrypt(ecode) Dimtexts dimi fori=1tolen(ecode) texts=textschr(asc(mid(ecode,i,2))+i) next……
加密与解密函数
<%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%>

原文链接:https://m.jb51.net/article/13342.htm
本站部分内容转载于网络,版权归原作者所有,转载之目的在于传播更多优秀技术内容,如有侵权请联系QQ/微信:153890879删除,谢谢!

推荐图文


随机推荐