欢迎光临
我们一直在努力

ASP可逆算法

建站超值云服务器,限时71元/月

unction encrypt(ecode)

dim texts

dim i

for i=1 to len(ecode)

texts=texts & chr(asc(mid(ecode,i,1))+i)

next

encrypt = texts

end function

function decrypt(dcode)

dim texts

dim i

for i=1 to len(dcode)

texts=texts & chr(asc(mid(dcode,i,1))-i)

next

decrypt=texts

end function

function mistake(prestring)

dim texts

dim seed

dim i,length

prestring = trim(prestring)

length = len(prestring)

seed = length

randomize(length)

texts = ""

for i = 1 to length

seed = int(94*rnd(-asc(mid(prestring,i,1))-seed*asc(right(prestring,1)))+32)

texts = texts & chr(seed) & chr(int(94*rnd(-seed)+32))

next

dim dist

dist=""

for i = 1 to len(texts)

if mid(texts,i,1)<>"" then

dist=dist+mid(texts,i,1)

end if

next

mistake = dist

end function

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » ASP可逆算法
分享到: 更多 (0)

相关推荐

  • 暂无文章