11月27

某ASP系统的加密解密代码

| |
17:27    Bear 本站原创    不指定
      在某处看到以下代码,可以加解密字符串

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


      现在的弱密码md5是可以反查的,加上上面的代码,被破解的可能性就大大降低了。

    还可以修改md5.asp里面的代码实现个人版md5值,有兴趣的可以研究下!

    修改方法:
      a = &H67452301
      b = &HEFCDAB89
      c = &H98BADCFE
      d = &H10325476
      修改a,b,c,d其中任意一个的值,比如a = &H67452303,改动别太大,不然出现什么灵异现象就不好了,嘿嘿。
阅读(1439) | 评论(0) | 引用(0)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]