SYMBOL
Mask the content before or after a special character and retain the rest characters.
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
algorithm |
Yes |
String |
Algorithm type, for example, SYMBOL |
parameters |
Yes |
For details, see Table 2. |
Parameters for configuring a data masking algorithm |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
type |
Yes |
String |
Character masking methods are described as follows:
|
method |
Yes |
String |
Masking method If type is set to RAND, this parameter can be set as follows:
|
direction |
Yes |
Int |
Masking direction 0: Mask the content before a special character. 1: Mask the content after a special character. |
symbol |
Yes |
String |
Specified special character |
Example Request
{ "mask_strategies": [ { "name": "col1", "algorithm": "SYMBOL", "parameters": { "type": "CHAR", "direction": 1, "symbol": "@", "method": "x" } } ], "data": [ { "col1": "test" } ] } Or { "mask_strategies": [ { "name": "col1", "algorithm": "SYMBOL", // Parameter for configuring a data masking algorithm "parameters": { "type": "RAND", "direction": 0, "symbol": "@", "method": "CHAR" } } ], "data": [ { "col1": "test" } ] }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.