We will be at OWASP APPSEC EUROPE 2017 - Belfast! Let’s talk!MORE INFO

Help Center

Get to know more about our API, Code Annotations and Code Transformations

Number To String

Potency
1 / 3
Resilience
1 / 5
Cost
0 / 5

Tags: numbers,strings,obfuscation

Description

Number to String replaces the literal numbers (decimals, hexadecimals, octals,
exponent notation) with a string representation that returns the same number
value at run-time.

Example

The following example contains a literal (integer) number:

1
user.phoneNumber = 555666777;

The result is an expression that returns the same number value using type
coercion. The transformation produces random results so the following example is
just a possible output:

1
user.phoneNumber = '555666777'-+[];

Using this transformation creates more targets for string obfuscation transformations.

Option Types

Name Required Default Value Description
freq No 0.8 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 on the node.
max No -1 Maximum number of times the transformation is applied on the node.

API Parameters

Example:

1
2
3
4
5
6
7
8
9
10
11
12
13
{
"keys": {
"accessKey": "XXXXXX",
"secretKey": "YYYYYY"
},
"applicationId": "ZZZZZZ",
"params": [
{
"name": "numberToString",
"options": {}
}
]
}