mask-pii

Supported language implementations

mask-pii provides implementations for many programming languages. Choose a language below to open its guide page.

Project goal

The goal is to make email and phone-number masking consistent and portable across languages before data leaves your system through logs, exports, or shared text.

Common behavior across implementations

  • Email masking keeps the domain and masks the local part.
  • Phone masking keeps formatting as much as possible while masking middle digits.
  • Masking rules are enabled explicitly, and the mask character can be customized.