asp加密解密函數(shù)decrypt
更新時間:2008年01月09日 13:40:16 作者:
asp加密解密函數(shù)decrypt
加密與解密函數(shù)
<%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%>
<%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%>
相關(guān)文章
ASP 包含文件中的路徑問題和使用單一數(shù)據(jù)庫連接文件的解決方案
全站只需要用一個數(shù)據(jù)庫連接文件的實現(xiàn)函數(shù)代碼2009-03-03asp中用insert into語句向數(shù)據(jù)庫插入記錄(添加信息)的方法
asp中用insert into語句向數(shù)據(jù)庫插入記錄信息的方法,學(xué)習(xí)的朋友可以參考下。2010-09-09用QuickWAP組件結(jié)合ASP建設(shè)Wap站點
用QuickWAP組件結(jié)合ASP建設(shè)Wap站點...2007-03-03