-
Notifications
You must be signed in to change notification settings - Fork 40
[case]Code mixed encryption
王集鹄 edited this page Aug 4, 2015
·
2 revisions
jdists 支持嵌套,这样就可以采用组合加密和嵌套加密的方式。让破解更困难
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<h1></h1>
<h2></h2>
<h3></h3>
</body>
<script>
/*<jdists encoding="zero">*/
/*<jdists encoding="aaencode">*/
document.querySelector('h1').innerHTML = '编译后不可见 1';
/*</jdists>*/
/*<jdists encoding="jjencode">*/
document.querySelector('h2').innerHTML = '编译后不可见 2';
/*</jdists>*/
document.querySelector('h3').innerHTML = '编译后不可见 3';
/*</jdists>*/
</script>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<h1></h1>
<h2></h2>
<h3></h3>
</body>
<script>
(function(){}).constructor("".replace(/./g,function(a){return{"":0,"":1}[a]}).replace(/.{7}/g,function(a){return String.fromCharCode(parseInt(a,2))}))();
</script>
</html>