We will be at OWASP APPSEC EUROPE 2017 - Belfast! Let’s talk!MORE INFO

Help Center

Get to know more about our API, Code Annotations and Code Transformations

Target

For the ones that don’t want to know all the transformations available, it is possible to obfuscate JavaScript selecting language targets rather than transformations.

The available targets are:

  • booleans
  • controlFlow
  • functions
  • identifiers
  • numbers
  • objects
  • predicates
  • regularExpressions
  • statements
  • strings
  • variables

For instance if you want to obfuscate functions you’ll just need to enable the target functions. Targets are then converted to the a list of transformations that target that language construct. Transformations for that target are selected randomly and if more transformations are added in the future, those will be added for you without you having to know update the annotations. Obviously, this is not always useful but the more “lazy” will like it.

For instance the following example:

1
2
// @jscrambler target functions
function foo () {}

Is the shorter equivalent of:

1
2
// @jscrambler enable functionReordering, functionOutlining, functionInlining
function foo () {}