neacrypt-js
v1.0.1
Published
Universal JavaScript obfuscator with SHA256 checksum and hybrid crypto support.
Maintainers
Readme
🚀 NeaCrypt-JS
NeaCrypt-JS is a universal JavaScript obfuscator with SHA256 checksum validation and hybrid crypto support for both Node.js and browser environments.
✨ Features
- 🔐 String Encryption — Encrypts all string literals and template literals.
- 🔒 SHA256 Checksum Validation — Verifies code integrity at runtime using SHA256 hash comparison.
- 🔑 Hybrid Crypto Support — Automatically uses Node.js crypto or browser SubtleCrypto as available.
- 🎲 Randomized Chunk Encoding — Dynamically splits code into randomized chunks per build for stronger protection.
- ⚙️ Lightweight Dependency — Uses terser for minification with no heavy external dependencies.
- ⚡ CLI Ready — Supports
npx,npm start, direct binary execution.
📦 Installation
npm install neacrypt-js🛠 Usage
npx neacrypt-js --file <source> --output <output>Example:
npx neacrypt-js --file ./test.js --output ./test.fus.js
or
npx neacrypt-js --file ./test.js --output ./test.fus.js
npx neacrypt-js --file "/path/js/index.js" --output "/path/js/index.obf.js"⚠️ Important Note
If your code needs to expose global functions (e.g. for onclick), define them as window.functionName = function() {} before obfuscation so they remain accessible after obfuscation.
👉 For a clear implementation reference, check the example/ folder provided in this package.
📄 License
ISC (Proprietary - Source code excluded from NPM package) — NeaByteLab
The package excludes src/ and internal files from NPM via files field in package.json.
