PRESXY
Retain the specified character string from x to y and mask the rest characters.
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
algorithm |
Yes |
String |
Algorithm type, for example, PRESXY |
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:
|
x |
Yes |
Int |
Start position of retained characters |
y |
Yes |
Int |
End position of retained characters |
Example Request
{ "mask_strategies": [ { "name": "col1", "algorithm": "PRESXY", "parameters": { "type": "CHAR", "x": 1, "y": 1, "method": "*" } } ], "data": [ { "col1": "test" } ] } Or { "mask_strategies": [ { "name": "col1", "algorithm": "PRESXY", "parameters": { "type": "RAND", "x": 1, "y": 1, "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.