Skip to main content
Skip table of contents

dlpx-core: Phone US

Based >Extensible Algorithm Framework

The Phone US algorithm masks the last 4 digits in the character group [0-9] with the hash value of the digits and the 3 preceding digits are replaced with the value '555'. All characters outside of this character group remain unmasked and are preserved in the masked value.

The maximum acceptable input length is 30 symbols, longer inputs will trigger non-conformant data handling. The input must contain at least one character in the character group [0-9], or non-conformant data handling will be triggered.

For example:

  • "12-765" → "58-504"

  • "(123)456-7890" → "(123)555-3085"

  • "1(800) FLOWERS" → "2(746) FLOWERS"

  • "+1-650-513-0514" → "+1-650-555-9202"

  • "(512) 333-1234 ext 123" → "(512) 333-5550 ext 497"

  • "CALL-ME-FLOWERS" → "CALL-ME-FLOWERS" (and generates a non-conformant data event)

This algorithm may generate non-conformant data events.


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.