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

Property Keys Reordering

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

Tags: object,reorder,property,key

Description

Property Keys Reordering randomly reorders object literal‘s properties.

Examples

The following example is an object literal with some property keys:

1
2
3
4
5
var color = {
red: function () { /* red body */ },
green: function () { /* green body */ },
blue: function () { /* blue body */ }
}

The following example is a possible output:

1
2
3
4
5
var color = {
green: function () { /* green body */ },
blue: function () { /* blue body */ },
red: function () { /* red body */ }
}

Combine Property Keys Reordering with Identifiers Renaming and other
obfuscation transformations:

1
2
3
4
5
var b = {
f: function () { /* obfuscated blue body */ },
g: function () { /* obfuscated red body */ },
c: function () { /* obfuscated green 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": "propertyKeysReordering"
}
]
}