New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jshaman-javascript-obfuscator

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jshaman-javascript-obfuscator

An easy-to-use online commercial JavaScript obfuscation tool

  • 1.0.1
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-61.54%
Maintainers
1
Weekly downloads
 
Created
Source

JShaman JavaScript Obfuscator

https://wwww.jshaman.com/en/
An easy-to-use online commercial JavaScript obfuscation tool

Introduction

Easy to use, no registration or login required
One-click JavaScript code obfuscation

Advantage

Easy to use
Without the need for registration or login, JavaScript code obfuscation can be done quickly and easily with just a secret key.
Web API
You can call the JShaman Web API on your websites, products, or projects to achieve convenient JavaScript obfuscation.
Powerful
JShaman JavaScript Obfuscator employs over 20 techniques to obfuscate and encrypt JavaScript code, ensuring that the obfuscated code is unreadable and unintelligible.
Polymorphic
The same code can produce different obfuscation results every time, with different variable names and function names, as well as random and diverse zombie codes, different control flows, etc.

Installation

$ npm install jshaman-javascript-obfuscator

Usage

//JShaman JavaScript Obfuscator Web API Interface
var jshaman_javascript_obfuscator = require("jshaman-javascript-obfuscator");
//Javascript code, obfuscation options and secret key
var javascript_code = "...";
var options = "...";
var secret_key ="...";
//Obfuscation result
var obfuscated_result = jshaman_javascript_obfuscator(javascript_code, options, secret_key);
console.log(obfuscated_result.state, obfuscated_result.content);

example


//JShaman JavaScript Obfuscator Web API Interface
var jshaman_javascript_obfuscator = require("jshaman-javascript-obfuscator");

//JavaScript Code to be obfuscated
var javascript_code = `
	function NewObject(prefix)
	{
		var count=0;
		this.SayHello=function(msg)
		{
				count++;
				alert(prefix+msg);
		}
		this.GetCount=function()
		{
				return count;
		}
	}
	var obj=new NewObject("Message : ");
	obj.SayHello("You are welcome.");
`;

//Options. 
//Please refer to the official website of JShaman in English for relevant instructions.
//https://www.jshaman.com/en/
var options = {
    "part_variable_identifier_obfuscate": 1,
	"global_variable_identifier_obfuscate": 0,
	"part_function_identifier_obfuscate":0,
	"global_function_identifier_obfuscate": 0,
	"member_expression_encode": 1,
	"numberic_literal_encode": 1,
	"binary_express_obfuscate": 1,
	"boolean_encode": 1,
	"json_encode":1,
	"regexp_encode":1,
	"string_unicode_encode": 1,
	"assignment_junk_code":1,
	"zombie_code": 1,
	"eval_encode": 1,
	"control_flow": 1,
	"string_reverse": 1,
	"comma_operator": 1,
	"string_array": 0,
	"string_array_encode": 0,
	"vm_execute": 0,
	"ast_execute": 0,
	"no_beautifier": 0,
	"tamper_proof": 0,
	"comments": 0,
	"compress": 1,
	"reserved_word": ["jshaman","w2sfot"]
}

//Secret key,Obtained from the JShaman official website. 
//If not yet obtained, it can be set to free
var secret_key = "free";
var obfuscated_result = jshaman_javascript_obfuscator(javascript_code, options, secret_key);

//Obfuscation result,
//if state is 0 it means successful and the content is the obfuscated JavaScript code.
console.log(obfuscated_result.state, obfuscated_result.content);

Connect US

support@jshaman.com

Keywords

FAQs

Package last updated on 25 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc