H5 應(yīng)用加固
關(guān)鍵字:H5應(yīng)用加固嗤无、h5加固震束、h5加密
什么H5應(yīng)用加固怜庸?
通過在線加固的方式,對(duì)H5應(yīng)用垢村、小游戲的代碼割疾、資源進(jìn)行加固,有效防止H5游戲嘉栓、應(yīng)用被逆向宏榕、調(diào)試、破解侵佃、資源盜用等麻昼。
其實(shí),H5加固馋辈,就是對(duì)JS代碼進(jìn)行混淆加密抚芦。
如何進(jìn)行H5應(yīng)用加固?
推薦用國內(nèi)知名的JS代碼加密平臺(tái):JShaman
H5應(yīng)用加固有哪些功能迈螟?
通常會(huì)有以下功能:變量名稱混淆叉抡、控制流混淆、指令替換答毫、混淆代碼插入褥民、代碼壓縮、字符串陣列化洗搂、字符串陣列加密消返、屬性加密、域名鎖定蚕脏、禁止控制臺(tái)輸出侦副。
示例:
未加固的H5代碼:
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());
H5代碼經(jīng)JShaman加固后:
function _0x5a20(_0x1d30c3,_0x2e1d06){var _0x5a20b0=_0x2e1d();_0x5a20=function(_0x309d81,_0x1d7de4){_0x309d81=_0x309d81-0x0;var _0x1bb803=_0x5a20b0[_0x309d81];return _0x1bb803;};return _0x5a20(_0x1d30c3,_0x2e1d06);}(function(_0x2d9b13,_0x5944df){function _0x29be10(_0x3d6153,_0x12ce0e,_0x51aac5,_0x45c6a1,_0x3919dc){return _0x5a20(_0x3919dc- -0xfe,_0x12ce0e);}var _0x3f28d3=_0x2d9b13();function _0x519b1c(_0x1fc5e2,_0x40a032,_0x21953d,_0x4f3b7a,_0x3c5702){return _0x5a20(_0x3c5702- -0x382,_0x40a032);}function _0x1b1d62(_0x35ea20,_0x15a1d1,_0x5cf3db,_0x1fcc50,_0x3fbdec){return _0x5a20(_0x3fbdec-0x175,_0x1fcc50);}function _0x426f29(_0x21b68d,_0x419534,_0x76f6fd,_0x51f385,_0x9c192d){return _0x5a20(_0x9c192d- -0x174,_0x21b68d);}function _0x351969(_0xd80d2b,_0x154e80,_0xe749b3,_0x1a6918,_0x14f114){return _0x5a20(_0x1a6918-0xc6,_0xe749b3);}while(!![]){try{var _0x3e550a=parseInt(_0x519b1c(-0x379,-0x381,-0x37c,-0x379,-0x37a))/0x1*(-parseInt(_0x519b1c(-0x379,-0x377,-0x370,-0x374,-0x375))/0x2)+-parseInt(_0x519b1c(-0x375,-0x373,-0x375,-0x37b,-0x379))/0x3*(-parseInt(_0x29be10(-0xfa,-0x101,-0x104,-0x101,-0xfe))/0x4)+parseInt(_0x426f29(-0x175,-0x17a,-0x17a,-0x174,-0x173))/0x5+-parseInt(_0x29be10(-0xfd,-0xf2,-0xfe,-0xfe,-0xf7))/0x6+-parseInt(_0x426f29(-0x16b,-0x171,-0x178,-0x178,-0x171))/0x7*(parseInt(_0x426f29(-0x178,-0x176,-0x171,-0x174,-0x172))/0x8)+parseInt(_0x1b1d62(0x17e,0x17b,0x185,0x188,0x181))/0x9+parseInt(_0x351969(0xcd,0xc5,0xc4,0xca,0xc5))/0xa;if(_0x3e550a===_0x5944df){break;}else{_0x3f28d3["\u0070\u0075\u0073\u0068"](_0x3f28d3["\u0073\u0068\u0069\u0066\u0074"]());}}catch(_0x4bcfe1){_0x3f28d3["\u0070\u0075\u0073\u0068"](_0x3f28d3["\u0073\u0068\u0069\u0066\u0074"]());}}})(_0x2e1d,0x76ca2);function get_copyright(){var _0x2331c1;var _0x2d946a=_0x518caf(0x34e,0x353,0x349,0x34a,0x34e);function _0x1592ac(_0x3a8c4e,_0x2e9645,_0x8d0279,_0x4d8081,_0x33d061){return _0x5a20(_0x33d061-0x2bf,_0x2e9645);}function _0x518caf(_0x3d6d4a,_0x3e4f4d,_0x47fd36,_0x316f6f,_0x421545){return _0x5a20(_0x421545-0x348,_0x316f6f);}_0x2331c1=0x7;var _0x37abfc=0x4c5ac^0x4c24d;var _0xabc011;var _0x46a81f=_0x518caf(0x34c,0x353,0x352,0x34d,0x352)+_0x37abfc+"\u002d"+new Date()["\u0067\u0065\u0074\u0046\u0075\u006c\u006c\u0059\u0065\u0061\u0072"]()+"\u002c"+_0x2d946a;_0xabc011=0x4;return _0x46a81f;}console["\u006c\u006f\u0067"](get_copyright());function _0x2e1d(){var _0x98043e=["\u0038\u0037\u0034\u0039\u0033\u0036\u0064\u004a\u0064\u0078\u004a\u004f","\u0038\u0038\u0031\u0038\u0038\u0069\u0069\u0057\u0046\u0057\u0045","MbShfz0299281".split("").reverse().join(""),"\u0034\u0038\u0030\u0032\u0039\u0036\u0038\u0062\u0051\u0061\u006f\u004c\u004e","\u0037\u0076\u004f\u0052\u0069\u0076\u0070","vTZLGn0254349".split("").reverse().join(""),"raeYlluFteg".split("").reverse().join(""),"moc.namahsj".split("").reverse().join(""),"bJAwtM0523935".split("").reverse().join(""),"PzXmkO1".split("").reverse().join(""),"\u0035\u0031\u0052\u004d\u004b\u0047\u0061\u0065",")c(".split("").reverse().join(""),"gol".split("").reverse().join(""),"\u0036\u0036\u0035\u0031\u0033\u0036\u0039\u004a\u007a\u0048\u0077\u005a\u004d"];_0x2e1d=function(){return _0x98043e;};return _0x2e1d();}
適用場(chǎng)景
H5 Web應(yīng)用保護(hù)
對(duì)基于H5技術(shù)實(shí)現(xiàn)的網(wǎng)頁類應(yīng)用進(jìn)行JS代碼保護(hù)。
H5 混合應(yīng)用保護(hù)
對(duì)基于ReactNative等框架開發(fā)的H5混合應(yīng)用進(jìn)行加固保護(hù)驼鞭。
小程序保護(hù)
對(duì)微信秦驯、阿里、華為挣棕、百度等不同平臺(tái)的小程序進(jìn)行加固保護(hù)译隘。