Property Keys Obfuscation

Potency Low
Resilience Low
Cost Low
Tags: object, literal, string, property, objects, obfuscation

Description

Property Keys Obfuscation transforms object literal's properties into their hexadecimal and/or unicode representation.

Code Annotation Example

// @jscrambler define propertyKeysObfuscation {encoding: [hexadecimal,unicode]} as propKeys
// @jscrambler enable propKeys

Examples

Consider the following example:

var coordinate = {
  x: function() { /* body */ },
  y: 10
};
foo.y;

Property keys x and y have been replaced by their hexadecimal and/or unicode representations:

var foo = {
  '\x78': function() { /* body */ },
  '\x79': 10
};
foo.y;

Option Types

Name Required Default Value Description
encoding Yes ["hexadecimal"] N/A

API Parameters

Example:

{
  "keys": {
    "accessKey": "XXXXXX",
    "secretKey": "YYYYYY"
  },
  "applicationId": "ZZZZZZ",
  "params": [
    {
      "name": "propertyKeysObfuscation",
      "options": {
        "encoding": [
          "hexadecimal"
        ]
      }
    }
  ]
}