http://www.ijiami.cn/h5Encryp...
As the title indicates, what is the encryption principle and what technology is used to achieve it... Does this kind of front-end encryption make sense? ……
伊谢尔伦2017-07-05 10:39:14
Generally, the document is scanned, and then the dom is written from js, and finally the js is confused. To be honest, it is not the same. In the end, it will be parsed into a real html document by the browser, and the source code can still be seen
为情所困2017-07-05 10:39:14
Similar to
var string = 'readable' ;
var use = string;
===>>
var o = {
s: x[0]+x[1]+x[2]+[x3]+x[4]+[x5]
}
var x = {
0:'s',
1:'t',
2:'r',
3:'i',
4:'n',
5:'g'
}
var use = o['s'];
If you randomly confuse it a few times, no one will want to see it.
Front-end code encryption itself is a false proposition. It must always be recognized by the js engine. The js engine can recognize it and it can be read by humans. Believe it or not, you can spend some time. Time, you can also read the binary code, it is just a matter of reading cost, but its value is not denied.