philterd / phileas

The open source PII and PHI redaction engine
https://www.philterd.ai
Apache License 2.0
23 stars 4 forks source link

Adding MASK filter strategy #105

Closed jzonthemtn closed 2 months ago

jzonthemtn commented 2 months ago

With this filter, you can replace text with a given character of some arbitrary length or the same length. An example filter profile is:

{
   "name": "email-address",
   "identifiers": {
      "emailAddress": {
         "emailAddressFilterStrategies": [
            {
               "strategy": "MASK",
               "maskCharacter": "*",
               "maskLength": "same"
            }
         ]
      }
   }
}