当前位置:asp编程网>技术教程>Asp教程>  正文

asp加密解密函数decrypt

2008-01-09 00:00:01   来源:   作者:   浏览量:1789   收藏
加密与解密函数
<%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)%>
">111111111
<%abc=encrypt(request("id"))%><%=abc%>

关于我们-广告合作-联系我们-积分规则-网站地图

Copyright(C)2013-2017版权所属asp编程网