|
EncrypKey | 文本型 | | |
Src | 文本型 | | | | key | 文本型 | | | |
变量名 | 类 型 | 静态 | 数组 | 备 注 | idx | | | | KeyLen | | | | KeyPos | | | | offset | | | | dest | 文本型 | | | SrcPos | | | | SrcAsc | | | | TmpSrcAsc | | | | Range | | | |
KeyLen = 取文本长度 (key )如果真 (KeyLen = 0 )key = “CaiChen”KeyPos = 0SrcPos = 0 SrcAsc = 0 Range = 256 置随机数种子 ()offset = 取随机数 (1, Range )dest = 取文本右边 (“00” + 进制_十到十六 (offset ), 2 )计次循环首 (取文本长度 (Src ), SrcPos )SrcAsc = (取代码 (Src, SrcPos ) + offset ) % 255 如果 (KeyPos < KeyLen )KeyPos = KeyPos + 1 KeyPos = 1 SrcAsc = 位异或 (SrcAsc, 取代码 (key, KeyPos))dest = dest + 取文本右边 (“00” + 进制_十到十六 (SrcAsc ), 2 ) offset = SrcAsc 计次循环尾 ()返回 (dest )|
UncrypKey | 文本型 | | |
Src | 文本型 | | | | Key | 文本型 | | | |
变量名 | 类 型 | 静态 | 数组 | 备 注 | idx | | | | KeyLen | | | | KeyPos | | | | offset | | | | dest | 文本型 | | | SrcPos | | | | SrcAsc | | | | TmpSrcAsc | | | |
KeyLen = 取文本长度 (Key )如果真 (KeyLen = 0 )key = “CaiChen”KeyPos = 0SrcPos = 0 SrcAsc = 0 offset = 进制_十六到十 (取文本左边 (Src, 2 )) SrcPos = 3 循环判断首 ()SrcAsc = 进制_十六到十 (取文本中间 (Src, SrcPos, 2 )) 如果 (KeyPos < KeyLen )KeyPos = KeyPos + 1 KeyPos = 1 TmpSrcAsc = 位异或 (SrcAsc, 取代码 (Key, KeyPos))如果 (TmpSrcAsc ≤ offset )TmpSrcAsc = 255 + TmpSrcAsc - offset TmpSrcAsc = TmpSrcAsc - offset dest = dest + 字符 (TmpSrcAsc)offset = SrcAsc SrcPos = SrcPos + 2 循环判断尾 (SrcPos ≤ 取文本长度 (Src )) 返回 (dest )
* A6598BBA619A56C4B6A5
* songxz110
被调试易程序运行完毕
|