asp加密解密函數(shù)decrypt
更新時(shí)間: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中最新新聞顯示new圖片的實(shí)現(xiàn)代碼
很多朋友想在最新新聞顯示new圖片,以便訪客快速找到新更新的內(nèi)容,原理就是通過(guò)判斷日期2012-03-03在不刷新頁(yè)面的情況下調(diào)用遠(yuǎn)程asp腳本
在不刷新頁(yè)面的情況下調(diào)用遠(yuǎn)程asp腳本...2007-01-01ASP利用Google實(shí)現(xiàn)在線翻譯功能
ASP利用Google實(shí)現(xiàn)在線翻譯功能...2006-09-09ASP 包含文件中的路徑問(wèn)題和使用單一數(shù)據(jù)庫(kù)連接文件的解決方案
全站只需要用一個(gè)數(shù)據(jù)庫(kù)連接文件的實(shí)現(xiàn)函數(shù)代碼2009-03-03asp中用insert into語(yǔ)句向數(shù)據(jù)庫(kù)插入記錄(添加信息)的方法
asp中用insert into語(yǔ)句向數(shù)據(jù)庫(kù)插入記錄信息的方法,學(xué)習(xí)的朋友可以參考下。2010-09-09用QuickWAP組件結(jié)合ASP建設(shè)Wap站點(diǎn)
用QuickWAP組件結(jié)合ASP建設(shè)Wap站點(diǎn)...2007-03-03