Create a custom mask
Mask values the built-in methods do not suit, such as member numbers, and try the mask on example values before you save it.
A custom mask is a masking method you create for values the built-in methods do not suit, such as a member number or a plan code. Owners and admins can create one.
Steps
-
Open Masking rules, then the Custom masks tab, and choose New mask.
-
Enter a Name. The description is optional.
-
Choose what the mask does.

Each choice shows an example of what it writes. -
Under Try it, paste a few example values, one on each line. Washery shows what the mask writes for each one. These values are used for the preview only and are not saved.

Try it: each member number keeps its format and gets different letters and digits. -
Choose Save mask.
What a mask can do
- Scramble, keeping the format. Digits become other digits and letters become other letters. Spaces, dashes and dots are kept.
- Hide with a character. Letters and digits become a character such as
*. - Pick from my list. Each value is replaced with one from a list you write, such as product names or plan codes.
- Number. A number in a range you set, or the original moved up or down by up to a percentage.
- Fixed value. Every value becomes the same text or number.
- SQL expression (advanced). An expression for each database engine, using
{value}for the column value and{salt}for the workspace secret.
Scramble and Hide can show the first or the last few characters. Characters are shown only when the value is longer than both numbers combined, so a short value is never shown in full.
Use the mask
- In a rule. Open Masking rules, choose New rule, and pick the mask as the method. The rule applies whenever Washery proposes a policy in this workspace.
- In a policy. Choose the mask as the method for a column, then approve the policy.
What to know
- A custom mask is one-way. A masked value cannot be turned back into the original.
- A real run uses your workspace secret, so the characters differ from the preview. The format is the same.
- An approved policy keeps a copy of the mask. Changing or removing the mask later does not change that policy.
- A mask that a rule uses cannot be removed.
Related
Still stuck
Tell us what you were doing and what you saw.