ASCII Key (AsciiPkGenerator)
The ASCII Key generator can be applied to primary key columns. It generates unique alphanumeric strings based on any printable ASCII characters.
The ASCII Key generator can be configured to be self-consistent, but not consistent with another column. You cannot configure differential privacy.
There is no generator-specific configuration.
{
"presetId": "string",
"generatorId": "AsciiPkGenerator",
"schema": "string",
"table": "string",
"column": "string",
"dataType": "string", //MongoDB only
"metadata": {
"excludeLowercaseAlphabet": boolean,
"isConsistent": boolean
},
"encryptionProcessor": "x-on", //To use configured Tonic data encryption
"customValueProcessor": "string" //If custom value processor applied
}
In the following example replacement for the ASCII Key generator, consistency is disabled. The output values do not include lowercase letters.
{
"name": "userid",
"schema": "test",
"table": "users",
"links": [
{
"presetId": "AsciiPkGenerator",
"generatorId": "AsciiPkGenerator",
"schema": "test",
"table": "users",
"column": "userid",
"metadata": {
"excludeLowercaseAlphabet": true,
"isConsistent": false
}
}
]
}