Skip to content
This repository was archived by the owner on Oct 31, 2022. It is now read-only.

Commit c430948

Browse files
Update README.md
1 parent dfb3d02 commit c430948

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,29 @@
44

55
> Obfuscates JavaScript files using amazing [javascript-obfuscator](https://github.com/javascript-obfuscator/javascript-obfuscator).
66
7-
Conceal your logic and hide any data contained in the code. Please read documentation [how to protect your code effectively](https://github.com/javascript-obfuscator/javascript-obfuscator/blob/master/README.md).
7+
Conceal your logic and hide any data contained in the code. Please read documentation [how to protect your code effectively](https://github.com/javascript-obfuscator/javascript-obfuscator/blob/master/README.md). Sample protection:
8+
9+
Original code:
10+
11+
(function(){
12+
var variable = 'abc';
13+
console.log(variable);
14+
})();
15+
16+
17+
18+
Protected code:
19+
20+
var _0xabf1 = [
21+
'\x61\x62\x63',
22+
'\x6c\x6f\x67'
23+
];
24+
(function() {
25+
var _0xe6fab6 = _0xabf1[0x0];
26+
console[_0xabf1[0x1]](_0xe6fab6);
27+
}());
28+
29+
830

931
Special thanks for [@sanex3339](https://github.com/sanex3339) for his outstanding [javascript-obfuscator](https://github.com/javascript-obfuscator/javascript-obfuscator) library.
1032

0 commit comments

Comments
 (0)