String Encoding transforms a string into an encoded representation.
// @jscrambler define stringEncoding {freq: 1, encoding: [hexadecimal,unicode]} as se
// @jscrambler enable se
Consider the following string:
'abcde';
A possible encoded representation in JavaScript would be for instance in unicode:
'\u0061\u0062\u0063\u0064\u0065';
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 | 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": "stringEncoding",
"options": {
"encoding": [
"hexadecimal",
"unicode"
]
}
}
]
}