How can I hide or encrypt JavaScript code?

jasonGreen picture jasonGreen · Jun 20, 2009 · Viewed 194.1k times · Source

Is there any way to hide or encrypt JavaScript code to prevent people from viewing, copying, and/or modifying proprietary programs?

Answer

Sev picture Sev · Jun 20, 2009

You can obfuscate it, but there's no way of protecting it completely.

example obfuscator: https://obfuscator.io