Guide

JavaScript obfuscation: what it protects against, and what it doesn't

Obfuscated JavaScript looks like it should be a security boundary — the code is unreadable, so surely whatever it does is protected. It isn't, and the reason is structural: a browser has to be able to execute the code fully, which means everything the code needs to run is present in what you shipped it, however scrambled the variable names are.