How it works

What Washery does to each kind of sensitive data

Washery proposes a masking method for every column that holds sensitive data. You review the policy, change what you like and approve it before anything is masked.

  • NamesMia ChenbecomesElla Novak
  • Tax and government identifiers628 194 821becomes252 760 189
  • Card numbers4871 8033 4018 7801becomes4372 6167 5136 1341

What Washery proposes for each kind of data

Each column gets the method that keeps it useful for testing. You can change any of them in the masking policy.

Kind of dataWhat Washery proposesFor example
NamesA made-up name. First name and last name columns each get that part.Mia ChenbecomesElla Novak
Email addressesA made-up name and number at example.com, a domain set aside for examples.mia.chen@gmail.combecomesella.novak418205993127@example.com
Phone numbersA different number in the same format, keeping its first digits.0412 880 316becomes0413 927 506
AddressesA made-up address. Street, suburb, state and postcode columns each get that part.12 O’Connell St, Fitzroybecomes31 D’Arcy St, Carlton
Tax and government identifiersSame format: a different number with the same layout and a valid check digit.628 194 821becomes252 760 189
Card numbersSame format: a different card number that passes the card check and keeps its first digit.4871 8033 4018 7801becomes4372 6167 5136 1341
Bank account detailsSame format: different digits in the same layout.063-109 1048 2217becomes418-552 7306 9941
Dates of birthThe date moved 1 to 365 days, earlier or later.1991-07-22becomes1991-06-09
IP addressesAn address from the ranges reserved for documentation.203.221.14.7becomes198.51.100.83
UsernamesHashed, so every username stays different and joins still match.mia.chenbecomes9c1e47ab02f6…
Passwords, keys and tokensCleared, or redacted where the column can’t be empty.sk_live_8Hq…becomes[redacted]
Free text and JSONRedacted, because people type personal details into notes and comments.Called Mia on her mobile…becomes[redacted]

Examples show the kind of value a method writes. Every value here is made up.

The masking methods

The policy editor offers the methods a column can take. A method a column can’t take is never swapped for another without you.

Made-up values
Names, email addresses and addresses that look real and belong to nobody. Phone numbers keep their format and first digits.
Liam PatelbecomesOwen Reyes
Same format
Digits stay digits, letters stay letters, and spaces and dashes stay where they are. Check digits stay valid for tax file numbers, ABNs, Medicare numbers, card numbers, IBANs and more.
51 824 753 556becomes37 190 468 221
Hash and tokenise
A value that can’t be turned back into the original, the same every time for the same input. A hashed IP address becomes one from the ranges set aside for documentation.
CUST-00412becomestok_7f3a9c2e1b…
Redact and clear
Replace the value with [redacted], or leave the column empty.
Allergic to penicillinbecomes[redacted]
Shift date
Move each date 1 to 365 days earlier or later, so ages and intervals stay believable and no date stays as it was.
1988-03-14becomes1988-05-02
Custom format
A layout you set, of fixed text and random digits or letters, for identifiers only you have.
AC-204817becomesAC-930562
Custom masks
Scramble or blank out part of a value, pick from a list, vary a number by a percentage, or write an SQL expression.
$84,200becomes$87,950
Empty or keep a table
Remove every row from tables such as sessions, or keep reference tables as they are.
sessions: 1.2M rowsbecomessessions: 0 rows

What stays true after masking

A masked copy has to behave like the database it came from, or tests on it prove nothing.

Joins still match
A foreign key column is masked the same way as the column it references.
One value, one result
The same value becomes the same masked value in every table, so a customer number lines up across the database.
Unique stays unique
Washery checks the policy against your keys before a run and refuses one that would break them.
Primary keys are kept
A key is only masked when the key itself holds sensitive data.
Types and lengths do not change
Every column keeps its type and its length, so your schema and your code work as they are.
No way back to the original
Same-format values use a key made for each run and never stored, so a masked value can’t be traced back.

Who decides what is masked

Each step can change the one before it, and yours come last.

  1. Washery’s proposal

    A method for every column, from its name, its type and a sample profiled in your account.

  2. Washery rules

    base2Services’ rules for every workspace. You can read them in the app.

  3. Your rules

    The rules and masks your workspace adds. They always win over Washery’s.

  4. Your approval

    Nothing is masked until an owner or admin approves the policy. A new column pauses scheduled runs until you approve a new version.

Questions and answers

Can masked data be turned back into the original?

No. Made-up values, redaction and clearing keep nothing of the original. Hashed, tokenised and same-format values are produced with a key, and same-format masking uses a new key for each run that is never stored.

Do foreign keys and joins still work after masking?

Yes. A foreign key column is masked the same way as the column it references, and the same value becomes the same masked value in every table. Washery checks the policy against your keys before each run.

Will a masked tax file number or card number pass validation?

Yes. Same-format masking keeps the layout and recalculates the check digit, so masked tax file numbers, ABNs, Medicare numbers, card numbers and IBANs pass the same checks your application runs.

Can I write masking rules for my workspace?

Yes. A workspace can add rules that match column or table names, define custom masks and custom formats, and those always win over Washery’s proposal and Washery rules.

What happens when a new column is added to the database?

A run stops when it finds a column the approved policy does not cover, and scheduled runs pause. Create and approve a new version of the masking policy to resume them.

Does Washery see the data it masks?

No. Profiling and masking run in your AWS account. Washery receives table names, column names and counts, never the values in your rows.

Mask your first database today

Connect your account, review what Washery will mask, and pay only when you create the masked copy.

Mask your first database