javascript-obfuscator / javascript-obfuscator/webpack-obfuscator
using electron outside of /main.js
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 928
- フォーク
- 92
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Currently obfuscating my electron app using webpack-obfuscator - my config file is as follows:
**// webpack.config.js
'use strict';
const nodeExternals = require('webpack-node-externals');
const path = require('path'),
Obfuscate = require('webpack-obfuscator');
// const ObfuscateOption = require('../obfuscation_config.js');
module.exports = {
entry: {
electron: './main.js',
script: './scripts/index.js',
},
output: {
path: path.resolve(__dirname, '..', 'build'),
filename: '[name].js', // output: abc.js, cde.js
},
target: 'electron-main',
plugins: [
new Obfuscate({
compact: true,
controlFlowFlattening: true,
controlFlowFlatteningThreshold: 0.75,
deadCodeInjection: true,
deadCodeInjectionThreshold: 0.4,
debugProtection: false,
debugProtectionInterval: false,
disableConsoleOutput: false,
identifierNamesGenerator: 'hexadecimal',
log: false,
numbersToExpressions: true,
renameGlobals: false,
rotateStringArray: true,
selfDefending: true,
shuffleStringArray: true,
simplify: true,
splitStrings: true,
splitStringsChunkLength: 10,
stringArray: true,
stringArrayEncoding: ['base64'],
stringArrayWrappersCount: 2,
stringArrayWrappersChainedCalls: true,
stringArrayWrappersType: 'variable',
stringArrayThreshold: 0.75,
/*transformObjectKeys: true,*/
unicodeEscapeSequence: false,
}),
],
externals: [nodeExternals({ modulesFromFile: true })],
};
**
however, i now need to use the electron net api in another file, not in the /build folder the obfuscation creates -
how would i go about this? thanks
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
webpack.config.js から始め、main.js の Electron エントリを scripts/index.js および build に生成されるファイルと比較します。webpack-obfuscator の設定が、バンドルされた出力の外部で Electron の net API を使用するコードをどのように扱うかを確認します。対応している設定を文書化するか、必要なファイル配置とビルドの動作を説明できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- electron, javascript, webpack
- 領域
- build-system, desktop
- issue の種類
- ドキュメント
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100