@sekyuriti/cloak
v0.1.2
Published
JavaScript obfuscation CLI - code never leaves your machine
Downloads
274
Maintainers
Readme
@sekyuriti/cloak
JavaScript obfuscation CLI. Your code never leaves your machine.
Install
npm install -g @sekyuriti/cloakQuick Start
# Authenticate
cloak login
# Protect a file
cloak protect app.js
# Protect a directory
cloak protect src/ -o dist/Commands
| Command | Description |
|---------|-------------|
| cloak login | Authenticate with SEKYURITI |
| cloak logout | Sign out |
| cloak status | Show account info and tier |
| cloak protect <file\|dir> | Obfuscate JavaScript file(s) |
| cloak help | Show help |
Options
| Option | Description |
|--------|-------------|
| -o, --output <dir> | Output directory |
| --local | Run locally without authentication (free features only) |
| --domain-lock <domains> | Lock to specific domains (PRO) |
| --expiration <date> | Set expiration date (PRO) |
| --anti-debug | Enable anti-debugging (PRO) |
| --anti-tamper | Enable anti-tampering (PRO) |
| --no-control-flow | Disable control flow flattening |
| --no-dead-code | Disable dead code injection |
Tiers
FREE
- Variable renaming
- String encryption (basic)
- Unlimited local usage
PRO ($19/mo)
- Everything in FREE
- Control flow flattening
- Dead code injection
- Domain lock
- Anti-debugging
- Anti-tampering
- Expiration / time bomb
- Violation telemetry dashboard
Examples
# Basic protection
cloak protect app.js
# Output to different directory
cloak protect src/ -o dist/
# Lock to specific domains (PRO)
cloak protect app.js --domain-lock example.com,www.example.com
# Set expiration date (PRO)
cloak protect app.js --expiration 2025-12-31
# Full protection (PRO)
cloak protect app.js --domain-lock example.com --anti-debug --anti-tamperLinks
- Documentation: https://sekyuriti.build/docs/cloak
- Module page: https://sekyuriti.build/modules/cloak
- Dashboard: https://sekyuriti.build/dashboard/cloak
License
MIT
