"Go" uses Jasob to confuse JavaScript code

Source: Internet
Author: User

In the normal web development, we often need to write some JS class library, when we publish our products, we have to distribute the source code, but this will reveal their own code. It feels good to use the jasob today. Using Jasob, our JavaScript code cannot be understood by anyone to eliminate plagiarism and leaks, and no one else can make any changes to our code as his work. With Jasob obfuscation, the code size of JavaScript will be reduced to the original 30%, so the browser will download and execute the page code in less time.

Jasob analyzes JavaScript code and replaces descriptive variables and function names, such as customer, yearly salary, name, etc., with meaningless D, G, M, etc., and also removes unnecessary comments, placeholders (spaces, lists, carriage returns, etc.). The functionality of the obfuscated JavaScript remains the same, but the code changes dramatically. Such a process we call confusion, the realization of confusing tool becomes the obfuscation. Confusing code cannot be cracked and is extremely difficult to understand. Jasob also handles style sheet CSS code in a pattern that handles JavaScript code, and Jasob removes placeholders and comments from non-javascript/css (for example, from HTML code). Jasob comes with additional features that make it a one step Web content optimization solution. The issue of confusing Web content allows you to maximize the protection of your own and your customers ' interests and maximize the protection of your source code.

The following is a simple record of the process of using JASOB to confuse code;

The situation of the file before it was confused

Confusing Money part file code

Open the Jasob and open the code file that needs to be confused via the menu bar or toolbar

Analysis of function names, variable names, attribute names, etc. in JS files

Tool bar buttons for parsing code files

Parse the code file to get the variable name

Create a personalized alternate name for the name of the analysis given separately

Use the name of the system name dictionary package to bulk replace the analysis obtained

Confusing and saving the resulting file after confusion

The confusing file situation

Confusing file code

"Go" uses Jasob to confuse JavaScript code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.