You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/anonymizer/index.md
+10-10
Original file line number
Diff line number
Diff line change
@@ -236,16 +236,16 @@ of the AnalyzerEngine"
236
236
237
237
## Built-in operators
238
238
239
-
| Operator type | Operator name | Description | Parameters |
240
-
|---|---|---|---|
241
-
| Anonymize | replace | Replace the PII with desired value |`new_value`: replaces existing text with the given value.<br> If `new_value` is not supplied or empty, default behavior will be: <entity_type\> e.g: <PHONE_NUMBER\>|
242
-
| Anonymize | redact | Remove the PII completely from text | None |
243
-
| Anonymize | hash | Hashes the PII text |`hash_type`: sets the type of hashing. Can be either `sha256`, `sha512` or `md5`. <br> The default hash type is `sha256`. |
244
-
| Anonymize | mask | Replace the PII with a given character |`chars_to_mask`: the amount of characters out of the PII that should be replaced. <br> `masking_char`: the character to be replaced with. <br> `from_end`: Whether to mask the PII from it's end. |
245
-
| Anonymize | encrypt | Encrypt the PII using a given key |`key`: a cryptographic key used for the encryption. |
246
-
| Anonymize | custom | Replace the PII with the result of the function executed on the PII |`lambda`: lambda to execute on the PII data. The lambda return type must be a string. |
| Deanonymize | decrypt | Decrypt the encrypted PII in the text using the encryption key |`key`: a cryptographic key used for the encryption is also used for the decryption. |
239
+
| Operator type | Operator name | Description | Parameters|
| Anonymize | replace | Replace the PII with desired value |`new_value`: replaces existing text with the given value.<br> If `new_value` is not supplied or empty, default behavior will be: <entity_type\> e.g: <PHONE_NUMBER\>|
242
+
| Anonymize | redact | Remove the PII completely from text | None|
243
+
| Anonymize | hash | Hashes the PII text |`hash_type`: sets the type of hashing. Can be either `sha256`, `sha512` or `blake2b`. <br> The default hash type is `sha256`.|
244
+
| Anonymize | mask | Replace the PII with a given character|`chars_to_mask`: the amount of characters out of the PII that should be replaced. <br> `masking_char`: the character to be replaced with. <br> `from_end`: Whether to mask the PII from it's end. |
245
+
| Anonymize | encrypt | Encrypt the PII using a given key |`key`: a cryptographic key used for the encryption.|
246
+
| Anonymize | custom | Replace the PII with the result of the function executed on the PII |`lambda`: lambda to execute on the PII data. The lambda return type must be a string.|
| Deanonymize | decrypt | Decrypt the encrypted PII in the text using the encryption key |`key`: a cryptographic key used for the encryption is also used for the decryption.|
249
249
250
250
!!! note "Note"
251
251
When performing anonymization, if anonymizers map is empty or "DEFAULT" key is not stated, the default
0 commit comments