jsarmor
v2.0.2
Published
Advanced JavaScript Obfuscator
Downloads
948
Maintainers
Readme
Overview
JSArmor transforms readable JavaScript into a more complex form while preserving runtime behavior.
It is designed for developers who want a simple CLI tool to protect their code from reverse engineering.
Installation
Install globally using npm
npm install -g jsarmorOr use it inside a project:
npm install jsarmorQuick Start
Obfuscate a JavaScript file:
jsarmor gen input.jsOutput will be generated in:
dist/obf.jsRun it normally:
node dist/obf.jsExample
Input
function greet(name) {
const message = "Hello " + name
console.log(message)
}
greet("world")Output (obfuscated)
(function(_0x1a2b){
const _0x3f21=['log','Hello','world'];
console[_0x3f21[0]](_0x3f21[1]+' '+_0x3f21[2]);
})();The output code becomes significantly harder to understand and analyze.
Features
- String encryption
- Variable renaming
- Control flow obfuscation
- Dead code injection
- Unicode encoding
- Anti-debug protection
- Self defending runtime
CLI
Basic command:
jsarmor gen <input.js>Example:
jsarmor gen app.jsResult:
dist/obf.jsUse Cases
JSArmor can be used for:
- protecting commercial JavaScript code
- distributing protected CLI tools
- hiding business logic
- making reverse engineering harder
Support
If you encounter problems or have questions:
GitHub Issues
https://github.com/Swp-dev/JavascriptArmorContact
https://eboy.asia/p.nLicense
MIT License
This project is licensed under the MIT License – you are free to use, modify and distribute it.
