You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 31, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+34-14Lines changed: 34 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,23 +8,25 @@ Conceal your logic and hide any data contained in the code. Please read document
8
8
9
9
Original code:
10
10
11
-
(function(){
12
-
var variable = 'abc';
13
-
console.log(variable);
14
-
})();
11
+
```js
12
+
(function(){
13
+
var variable ='abc';
14
+
console.log(variable);
15
+
})();
16
+
```
15
17
16
18
Protected code:
17
19
18
-
var _0xabf1 = [
19
-
'\x61\x62\x63',
20
-
'\x6c\x6f\x67'
21
-
];
22
-
(function() {
23
-
var _0xe6fab6 = _0xabf1[0x0];
24
-
console[_0xabf1[0x1]](_0xe6fab6);
25
-
}());
26
-
27
-
20
+
```js
21
+
var _0xabf1 = [
22
+
'\x61\x62\x63',
23
+
'\x6c\x6f\x67'
24
+
];
25
+
(function() {
26
+
var _0xe6fab6 =_0xabf1[0x0];
27
+
console[_0xabf1[0x1]](_0xe6fab6);
28
+
}());
29
+
```
28
30
29
31
Special thanks for [@sanex3339](https://github.com/sanex3339) for his outstanding [javascript-obfuscator](https://github.com/javascript-obfuscator/javascript-obfuscator) library.
30
32
@@ -108,11 +110,29 @@ grunt.initConfig({
108
110
});
109
111
```
110
112
113
+
#### Obfuscate and overwrite
114
+
115
+
In this example, source files are obfuscated and overwritten:
116
+
117
+
```js
118
+
grunt.initConfig({
119
+
javascript_obfuscator: {
120
+
options: {
121
+
/* Default options */
122
+
},
123
+
main: {
124
+
src: ['src/module1.js', 'src/module2.js']
125
+
}
126
+
},
127
+
});
128
+
```
129
+
111
130
## Contributing
112
131
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).
113
132
114
133
## Release History
115
134
135
+
* 2016-12-23 / v1.1.0 / Obfuscate and overwrite files without destination.
0 commit comments