怎么对参数加密呢?
如果是 <html:link page= "/serchCDlog.do?wsid=${l.WMID} "> 价格 </html:link> 这种形式怎么对参数加密呢?
------解决方案--------------------解密
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