VM-Based Obfuscation compiles the input JavaScript code to a new binary language, with randomly generated components. The output of the protected code contains the binary payload and a JavaScript program that will act as the interpreter for the binary code. Each new code protection generates binary code in an entirely new language.
This transformation can only be used with Code Annotations due to its significant performance costs.
// @jscrambler enable vmBasedObfuscation
function myFunction() {
// <function contents here>
}
This transformation can only be used via Code Annotations.