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

Function Reordering

Potency
1 / 3
Resilience
5 / 5
Cost
0 / 5

Tags: functions,reorder,scramble,obfuscation

Description

Function Reordering randomly reorders function declarations.

Example

The following example contains five function declarations and two function
expressions
:

1
2
3
4
5
6
7
function a () { /* body */ }
function b () { /* body */ }
function c () { /* body */ }
function d () { /* body */ }
function e () { /* body */ }
var f = function () { /* body */ }
var g = function () { /* body */ }

All function declarations have been reordered but the function expressions
haven’t:

1
2
3
4
5
6
7
function c () { /* body */ }
function e () { /* body */ }
var f = function () { /* body */ }
function b () { /* body */ }
function d () { /* body */ }
var g = function () { /* body */ }
function a () { /* body */ }

API Parameters

Example:

1
2
3
4
5
6
7
8
9
10
11
12
{
"keys": {
"accessKey": "XXXXXX",
"secretKey": "YYYYYY"
},
"applicationId": "ZZZZZZ",
"params": [
{
"name": "functionReordering"
}
]
}