Property Keys Obfuscation transforms object literal's properties into their hexadecimal and/or unicode representation.
// @jscrambler define propertyKeysObfuscation {encoding: [hexadecimal,unicode]} as propKeys
// @jscrambler enable propKeys
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;
Name | Required | Default Value | Description |
---|---|---|---|
encoding | Yes | ["hexadecimal"] | N/A |
Browser | Compatible Versions | Tested Versions | Notes |
---|---|---|---|
Chrome | 80+ | 80+ | |
Firefox | 90+ | 90+ | |
Internet Explorer | 8+ | 8+ | |
Microsoft Edge | 116+ | 116+ | |
Safari | 13.1+ | 13.1+ |
Example:
{
"keys": {
"accessKey": "XXXXXX",
"secretKey": "YYYYYY"
},
"applicationId": "ZZZZZZ",
"params": [
{
"name": "propertyKeysObfuscation",
"options": {
"encoding": [
"hexadecimal"
]
}
}
]
}