String Encoding

Potency Low
Resilience Low
Cost Low
Tags: strings, unicode, encode, obfuscation

Description

String Encoding transforms a string into an encoded representation.

Code Annotation Example

// @jscrambler define stringEncoding {freq: 1, encoding: [hexadecimal,unicode]} as se
// @jscrambler enable se

Examples

Consider the following string:

'abcde';

A possible encoded representation in JavaScript would be for instance in unicode:

'\u0061\u0062\u0063\u0064\u0065';

Option Types

Name Required Default Value Description
encoding Yes N/A N/A
freq No 1 Probability of applying the transformation when the node allows for the transformation to happen.
min No N/A Minimum number of times the transformation is applied to each JavaScript file. This number may still not be reached if there are not enough candidates to apply the transformation to.
max No -1 Maximum number of times the transformation is applied to each JavaScript file.

Browser Compatibility

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+

API Parameters

Example:

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