Skip to content

TelephoneNoLookup

Note

Two new telephone algorithm instances were introduced in version 6.0.10.0 and are the preferred methods for masking telephone values. See dlpx-core:Phone Unique and dlpx-core:Phone US for more information.

This algorithm masks telephone values that are in the expected format. There are different behaviors for US and international phone number values. The algorithm determines which type of phone number the value is based on the following:

  • US: Values that are classified as US telephone numbers are comprised of only digits and select special characters ["-",".","(",")"]. The values must adhere to the following restrictions:
Length Contains "-"/"." Starts with "(" Contains ")" Example
7 4567890
8 X 456-7890
10 1234567890
12 X 123-456-7890
13 X X X (123)456-7890
14 X X X (123)-456-7890
  • International: Values that are classified as International telephone numbers have a minimum length of 7 and do not adhere to any of the above patterns for US telephone number values. These values may be comprised of letters, numbers, and special characters.

If the algorithm determines the input value is a US telephone number, the last 4 digits will be masked using a lookup value from a lookup list. The preceding 3 digits will be replaced by the fixed value "555". All remaining digits will remain unmasked.

If the algorithm determines the input value is an International telephone number, any digits are masked the same way as US telephone numbers. For any number of digits 1-4, the digits will be masked using a lookup value from a lookup list. This lookup value will be truncate based on the number of digits to mask. For any number of digits 5-7, the last 4 digits will be masked as described above and the preceding digits will be replaced with the number "5". For values with more than 7 digits, the last 7 digits will be masked as described above and the rest will remain unmasked.

Non-conformant data behavior

This algorithm will trigger non-conformant data behavior for the following situations:

  • Any input with a length less than 7 will remain unmasked and trigger non-conformant data behavior
  • Any input consisting of only non-numeric characters will remain unmasked and trigger non-conformant data behavior

For example:

  • "123-456-7890" (US) → "123-555-3502"
  • "456-7890" (US) → "555-3502"
  • "1 (800) FLOWERS" (International) → "9 (890) FLOWERS"
  • "+52 55 1234 5678" (International) → "+52 55 1555 8853"
  • "(123)-ABC-4567" (International) → "(555)-ABC-1999"

Note

This algorithm may generate non-conformant data events.