Masking

A technique commonly used by dynamic data masking within the RDBMS. Certain fields are replaced with a mask character (such as an ‘XXX’). This removes the actual content while preserving the same formatting. For example, below masks credit card details while preserving the pattern:

Example

obfuscation:
  name: numberMasking
  fields:
    creditcard:
      masking:
        pattern: XXXX XXXX XXXX 1234
        mask: "*"

Attributes

AttributeDescriptionData TypeRequired

mask

Replacement character to be applied

Char

Default: *

pattern

Masking pattern to be applied to source string value

String

apply to all

Boolean to inform if all characters need to be replace using the mask value (true) or to apply pattern (false).

Boolean

Default: false

Last updated