国内两个JS加密平台,加密JS代码效果对比

国内两个JS加密平台,加密JS代码效果对比

如题,对比国内两家JS加密平台,加密JS的效果

一、JShaman,JS加密平台

国内两个JS加密平台,加密JS代码效果对比_第1张图片

测试用JS代码:

function get_copyright(){
var domain = "jshaman.com";
var from_year = 2017;
var copyright = "(c)" + from_year + "-" + (new Date).getFullYear() + "," + domain;
return copyright;
}
console.log(get_copyright());

JS代码加密后:

国内两个JS加密平台,加密JS代码效果对比_第2张图片

(function(_0x11cde0,_0x5be53e){function _0x49227a(_0x1d8e80,_0x54d896,_0x28b929,_0x4622b1,_0x214db7){return _0x1022(_0x214db7-0x35d,_0x28b929);}function _0x5d92f7(_0x336bab,_0x3b1f5b,_0x12c87c,_0x19594a,_0x4d26a6){return _0x1022(_0x4d26a6-0x36e,_0x336bab);}function _0x2bbceb(_0x4d4a5e,_0x3818f8,_0xced321,_0x5af0b2,_0x486ad2){return _0x1022(_0x5af0b2-0x296,_0x3818f8);}function _0x4df432(_0x1ca886,_0x55bc49,_0x52b202,_0x1b91d9,_0x225d38){return _0x1022(_0x55bc49- -0x25e,_0x1ca886);}function _0xd23113(_0x2a8d78,_0x9b9dd2,_0x200e84,_0x2d6669,_0xc3d3ea){return _0x1022(_0xc3d3ea- -0x344,_0x200e84);}var _0x2a6ff5=_0x11cde0();while(!![]){try{var _0x3f6a24=-parseInt(_0x4df432(-0x25e,-0x25b,-0x25e,-0x25e,-0x261))/0x1+-parseInt(_0x49227a(0x35e,0x35f,0x363,0x362,0x35e))/0x2+-parseInt(_0x49227a(0x36a,0x364,0x360,0x363,0x364))/0x3+-parseInt(_0x5d92f7(0x372,0x368,0x374,0x367,0x36e))/0x4+-parseInt(_0x49227a(0x368,0x368,0x362,0x36b,0x365))/0x5*(-parseInt(_0x5d92f7(0x378,0x370,0x36e,0x36f,0x373))/0x6)+parseInt(_0x49227a(0x366,0x36a,0x36b,0x369,0x366))/0x7*(-parseInt(_0x5d92f7(0x37a,0x37e,0x380,0x381,0x37a))/0x8)+parseInt(_0xd23113(-0x336,-0x340,-0x33a,-0x33d,-0x33a))/0x9;if(_0x3f6a24===_0x5be53e){break;}else{_0x2a6ff5['push'](_0x2a6ff5['shift']());}}catch(_0x170dbd){_0x2a6ff5['push'](_0x2a6ff5['shift']());}}}(_0x33a2,0x7c519));function _0x1022(_0x1b66a4,_0x33a2b8){var _0x10228d=_0x33a2();_0x1022=function(_0x449a6f,_0xc38b60){_0x449a6f=_0x449a6f-0x0;var _0x4dda70=_0x10228d[_0x449a6f];return _0x4dda70;};return _0x1022(_0x1b66a4,_0x33a2b8);}function get_copyright(){function _0xcf3466(_0x53f6b5,_0x271220,_0x34a8b3,_0x1ade36,_0x2489a0){return _0x1022(_0x2489a0- -0x373,_0x271220);}var _0x2b7344=0x2+0x9;var _0x1055be=_0xcf3466(-0x369,-0x361,-0x368,-0x363,-0x368);_0x2b7344=0x3;var _0x42df06=0x432a9^0x43548;var _0x39f28d=_0x3a22a4(0x13d,0x137,0x136,0x13c,0x141)+_0x42df06+'-'+new Date()['getFullYear']()+','+_0x1055be;function _0x3a22a4(_0x1d4ed0,_0x5ca62d,_0x4f30dd,_0x39fec8,_0xa45f2c){return _0x1022(_0x39fec8-0x138,_0x4f30dd);}return _0x39f28d;}function _0x33a2(){var _0x2f73ff=['2649510BfxImK','15svkugo','476cussAL','23522409QkwKvh','jshaman.com','67144XfQLKG','2207756jLdXuc','303450DeRZOP','log','12996vtlNJg','(c)','132324NyenAv','getFullYear'];_0x33a2=function(){return _0x2f73ff;};return _0x33a2();}console['log'](get_copyright());

二、Ty2y,JS代码加密平台

国内两个JS加密平台,加密JS代码效果对比_第3张图片

使用与前面相同的JS代码进行加密测试。

国内两个JS加密平台,加密JS代码效果对比_第4张图片

使用默认配置:

国内两个JS加密平台,加密JS代码效果对比_第5张图片

JS代码加密后:

国内两个JS加密平台,加密JS代码效果对比_第6张图片

function get_copyright(){var _array="0|3|1|4|6|2|5|7|9|8".split("|"),_index=0;while(!![]){switch(+_array[_index++]){case 0:var _0xa2f=function(s,h){return s+h;}(719624^719626,302789^302790);continue;case 1:_0xa2f=(334528^334535)+(358251^358253);continue;case 2:_0x=(163926^163923)+(318093^318092);continue;case 3:var _2="\u006a\u0073\u0068\u0061\u006d\u0061\u006e\u002e\u0063\u006f\u006d";continue;case 4:var _0x=function(s,h){return s+h;}(393495^393492,347074^347082);continue;case 5:var _0xe;continue;case 6:var from_year=function(s,h){return s^h;}(512807,513222);continue;case 7:var _6=function(s,h){return s+h;}("\u0028\u0063\u0029"+from_year+"\u002d"+new Date()['\x67\x65\x74\x46\x75\x6c\x6c\x59\x65\x61\x72']()+"\u002c",_2);continue;case 8:return _6;continue;case 9:_0xe=function(){return"qhoh";}();continue;}break;}}console['\x6c\x6f\x67'](get_copyright());

你可能感兴趣的:(js加密,js混淆,js代码加密)