PRESNM
Retain the first n and last m characters and mask the content in the middle part of the specified character string.
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
algorithm |
Yes |
String |
Algorithm type, for example, PRESNM |
|
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:
|
|
n |
Yes |
Int |
Retain the first n characters. |
|
m |
Yes |
Int |
Retain the last m characters. |
Example Request
{
"mask_strategies": [
{
"name": "col1",
"algorithm": "PRESNM",
"parameters": {
"type": "CHAR",
"n": 1,
"m": 1,
"method": "*"
}
}
],
"data": [
{
"col1": "test"
}
]
}
Or
{
"mask_strategies": [
{
"name": "col1",
"algorithm": "PRESNM",
"parameters": {
"type": "RAND",
"n": 1,
"m": 1,
"method": "BOTH"
}
}
],
"data": [
{
"col1": "test"
}
]
}
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.