Find a mask-pii guide for your language

mask-pii is available in several programming languages. Pick yours below to see how to get started.

What mask-pii helps you do

Use mask-pii to mask personal information such as email addresses and phone numbers before you write logs, run audits, or share data.

How masking works in each language

  • Mask the part of an email address before the @ and leave the domain visible.
  • Mask the middle digits of a phone number while keeping its format where possible.
  • Turn on the rules you need and change the masking character if you want to.

Pick a language

Each guide shows how to install and use mask-pii and where to find the README for that language.

AWK

Read the guide

We're still working on this language version

Bash

Read the guide

We're still working on this language version

Bun

Read the guide

We're still working on this language version

Carbon

Read the guide

We're still working on this language version

Common Lisp

Read the guide

We're still working on this language version

Crystal

Read the guide

We're still working on this language version

D

Read the guide

We're still working on this language version

Deno

Read the guide

We're still working on this language version

Elixir

Read the guide

We're still working on this language version

Fish

Read the guide

We're still working on this language version

Go

Read the guide

Groovy

Read the guide

We're still working on this language version

Hare

Read the guide

We're still working on this language version

Haskell

Read the guide

We're still working on this language version

JavaScript

Read the guide

We're still working on this language version

Julia

Read the guide

We're still working on this language version

Lua

Read the guide

We're still working on this language version

Nim

Read the guide

We're still working on this language version

Nushell

Read the guide

We're still working on this language version

OCaml

Read the guide

We're still working on this language version

Odin

Read the guide

We're still working on this language version

Perl

Read the guide

We're still working on this language version

PHP

Read the guide

We're still working on this language version

Pony

Read the guide

We're still working on this language version

PowerShell

Read the guide

We're still working on this language version

Python

Read the guide

R

Read the guide

We're still working on this language version

Racket

Read the guide

We're still working on this language version

Red

Read the guide

We're still working on this language version

Ruby

Read the guide

We're still working on this language version

Rust

Read the guide

Swift

Read the guide

We're still working on this language version

Tcl

Read the guide

We're still working on this language version

V

Read the guide

We're still working on this language version

Zig

Read the guide

We're still working on this language version

Zsh

Read the guide

We're still working on this language version