找回密码
 加入
搜索
查看: 1833|回复: 0

官方的解密 加密 工具 有例子吗 不会用饿

  [复制链接]
发表于 2008-10-23 11:17:13 | 显示全部楼层 |阅读模式
下面是官方的加密解密工具。。。请问有具体例子吗

#include <String.au3>
Func crypt($t, $pw, $type);文本,密码,0<strong><font color="#FF0000">加密</font></strong>1解密
    If $type = 1 Then $t = _HexToString($t)
    $Terug = ""
    $pwlen = StringLen($pw)
    $textlen = StringLen($t)
    Dim $text[$textlen + 1]
    For $z = 1 To $pwlen
        For $i = 1 To $textlen
            $text[$i] = Hex(BitXOR(Asc(StringMid($t, $i, 1)), Asc(StringMid($pw, $z, 1))), 2)
        Next
    Next
    For $i = 1 To UBound($text) - 1
        If $type = 1 Then $Terug &= Chr(Dec($text[$i]))
        If $type <> 1 Then $Terug &= $text[$i]
Next
    Return $Terug
EndFunc   ;==>crypt
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-23 11:19 , Processed in 0.074246 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表