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
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 | 80+ | 80+ | |
Internet Explorer | 8+ | 8+ | |
Microsoft Edge | 108+ | 108+ | |
Safari | 12.1+ | 12.1+ | |
API Parameters
Example:
{
"keys": {
"accessKey": "XXXXXX",
"secretKey": "YYYYYY"
},
"applicationId": "ZZZZZZ",
"params": [
{
"name": "stringEncoding",
"options": {
"encoding": [
"hexadecimal",
"unicode"
]
}
}
]
}