How to hide your JavaScript code from View Source

creativebloq.com – Tam Hanna, Web Designer

If you don’t take precautions with your JavaScript code, you’re making life easy for anyone who wants to clone it. But if your programming processes are more than one click away, attackers will prefer to clone a competitor’s software. Bots and other miscreants combing the internet for AWS or Azure credentials usually do not bother with obfuscated code – the next website’s login information can also be used to mine bitcoin and can be harvested with less effort.

Obfuscating JavaScript used to be complex. However, the process has become significantly easier during the last few years. Today, even small companies can and should protect their code from prying eyes. In some cases, getting secure is just an invocation of a Node.js package away.

The following steps introduce a commonly used JavaScript obfuscator, and also look at a few other topics related to the problem at hand…

View on creativebloq.com