- JavaScript Obfuscator (encrypt )



* javascript-obfuscator/webpack-obfuscator : 성공
https://github.com/javascript-obfuscator/webpack-obfuscator


npm install --save-dev webpack-obfuscator


var JavaScriptObfuscator = require('webpack-obfuscator');

// ...

// webpack plugins array
plugins: [
new JavaScriptObfuscator ({
      rotateUnicodeArray: true
  }, ['excluded_bundle_name.js'])
],




//=====================

* terser-webpack-plugin : 안됨
new TerserJSPlugin({ terserOptions: {        mangle: true, //소용없음  


* uglifyjs-webpack-plugin : 안됨
new UglifyJsPlugin({
                test: /\.js(\?.*)?$/i,
                uglifyOptions: {    mangle: true, // 소용없음


* javascript-obfuscator/obfuscator-loader : 안됨


* babel - uglify : 안됨

Posted by 코덴스

댓글을 달아 주세요