DEV Community

WangLiwen
WangLiwen

Posted on

Is JS obfuscation the same as JS encryption?

Is JS obfuscation the same as JS encryption?

In most cases, JS obfuscation and JS encryption refer to the same thing.

Conventionally, non-English-speaking countries refer to it as JS encryption, while English-speaking countries call it obfuscation. They are actually the same. Both refer to protecting JS code, such as making variable names meaningless, encrypting strings, scrambling execution flows, and so on. The purpose is to make JS code unreadable and difficult to understand, thus preventing the code written by oneself from being used or analyzed by others.

JS obfuscation and JS encryption have become a mature industry, with many popular tools, often in the form of SaaS online websites. For example, js-obfuscator, jshaman, jsjiami.online, are all professional JS obfuscation and encryption tools.

Image description

However, in JS programming, there is another type of encryption, referring to encryption algorithms, such as MD5 encryption and Base64 encoding. But they are generally referred to directly as encryption algorithms, rather than JS obfuscation or JS encryption.

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay