当前位置: 代码迷 >> Java Web开发 >> 如何对参数加密呢
  详细解决方案

如何对参数加密呢

热度:51   发布时间:2016-04-17 14:50:01.0
怎么对参数加密呢?
如果是   <html:link   page= "/serchCDlog.do?wsid=${l.WMID} "> 价格&nbsp; </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
  相关解决方案