能对JS代码进行简单的加密,给破解者带来不小的麻烦,防君子不防小人。能加密就能解密,这里就不提供解密方案了。
源代码开放,请用eclipse导入。
原JS代码:
alert("hello world")
加密后的JS代码:
Olllll="(";OOOlll=")";OOOOll=" ";OOllll="x";OOOOOl="r";OOOOOOOll="S";OOOOOO="i";OOOOlOOll="t";OOOOOOO="n";OOOOOlll="i";OOOOOOOO="g";lllOllll="o";OOOOOOll="t";OOOOllll="o";OOOlllll="n";llllOlll="d";lllllOll="e";llOlllll="C";lllllOOl="x";llllOOll=")}";lllOOlll="C";llOOllll="h";llllllOl="(";lOOlllll="a";LOOOllll="r";lllOOOll="n";llOOOlll="f";lOOOllll="u";llllOOOl="c";OOllllll="f";llOOOOll=".";lllOOOOl=" l = ";lOOOOlll="r";lOOOOOll="o";llOOOOOl="m";lOOOOOOl="{r";llOOOOOOl="e";lOlOOOOOl="t";lOOlOOOOl="u";lOOOlOOOl="r";lOOOOlOOl="n";lOOOOOlOl="v";lOOOOOOll="a";lOOOOOLll="r";eval(lOOOOOlOl+lOOOOOOll+lOOOOOLll+lllOOOOl+llOOOlll+lOOOllll+lllOOOll+llllOOOl+OOOOOOll+OOOOOlll+OOOOllll+OOOlllll+Olllll+OOllll+OOOlll+lOOOOOOl+llOOOOOOl+lOlOOOOOl+lOOlOOOOl+lOOOlOOOl+lOOOOlOOl+OOOOll+OOOOOOOll+OOOOlOOll+OOOOOl+OOOOOO+OOOOOOO+OOOOOOOO+llOOOOll+OOllllll+lOOOOlll+lOOOOOll+llOOOOOl+lllOOlll+llOOllll+lOOlllll+LOOOllll+llOlllll+lllOllll+llllOlll+lllllOll+llllllOl+lllllOOl+llllOOll);eval(l(79)+l(61)+l(102)+l(117)+l(110)+l(99)+l(116)+l(105)+l(111)+l(110)+l(40)+l(109)+l(41)+l(123)+l(114)+l(101)+l(116)+l(117)+l(114)+l(110)+l(32)+l(83)+l(116)+l(114)+l(105)+l(110)+l(103)+l(46)+l(102)+l(114)+l(111)+l(109)+l(67)+l(104)+l(97)+l(114)+l(67)+l(111)+l(100)+l(101)+l(40)+l(77)+l(97)+l(116)+l(104)+l(46)+l(102)+l(108)+l(111)+l(111)+l(114)+l(40)+l(109)+l(47)+l(49)+l(48)+l(48)+l(48)+l(48)+l(41)+l(47)+l(57)+l(57)+l(41)+l(59)+l(125));eval(""+O(96037535)+O(106926488)+O(99994089)+O(112866544)+O(114841063)+O(39602633)+O(33665224)+O(102962573)+O(99999684)+O(106928981)+O(106925424)+O(109895658)+O(31686861)+O(117815368)+O(109892183)+O(112861740)+O(106921952)+O(99002706)+O(33662060)+O(40595619));
文件体积和运行效率会减低,但是对现在的机器来讲不算什么,有利有弊。大批量js代码已测试通过。
下载地址:
http://download.csdn.net/detail/cxy1238/4757396