Redaction (Scrub)
Cresset includes a small tool that swaps secrets and personal data for placeholders, so text is safer to paste into a chat, a ticket or a log. It runs entirely on your machine. It makes no network requests.
Hi, I'm Ada (ada@example.com, 555-123-4567). DB_PASSWORD=hunter2xyz. For Project Falcon.
becomes
Hi, I'm Ada (<EMAIL_1>, <PHONE_1>). DB_PASSWORD=<SECRET_1>. For <TERM_1>.
Paste the reply you get back and restore it, and the placeholders turn back into the real values.
On the command line
node cresset.js redact notes.txt --term "Project Falcon" --map key.json
- The scrubbed text is printed (or written with
--out file). --termhides a word or name you list. Use it for client names, project names and anything a pattern can't recognize. Repeat it for more.--map key.jsonsaves the key that lets you undo the swap.- Use
-instead of a file name to read from standard input. --skip KINDturns one detector off, for example--skip IP_ADDRESS.
To put the real values back:
node cresset.js restore reply.txt --map key.json
In the browser
The Scrub page does the same thing. It makes no network requests and stores nothing, which you can confirm in your browser's Network tab.
What it finds
| Kind | Examples |
|---|---|
EMAIL | ada@example.com |
PHONE, SSN | (555) 123-4567, 123-45-6789 |
CREDIT_CARD | Numbers that pass the card checksum |
IP_ADDRESS | 192.168.1.20 (not 127.0.0.1) |
USER_PATH | The user name in C:\Users\Ada\... or /home/ada/... |
SECRET | The value after password=, api_key:, token= and similar |
API_KEY, GITHUB_TOKEN, AWS_KEY, SLACK_TOKEN, JWT, BEARER_TOKEN | Common key and token shapes |
PRIVATE_KEY | A whole -----BEGIN ... PRIVATE KEY----- block |
URL_PASSWORD | The password in postgres://user:pass@host |
HIGH_ENTROPY | Long random-looking strings |
TERM | Anything you list with --term |
The same value always gets the same placeholder, so <EMAIL_1> means the same address everywhere in the text.
What it is not
Be clear about the limits.
- It is a pattern search, not a guarantee. It cannot understand meaning. It won't know that "the Henderson account" is confidential unless you list it with
--term. Always read the result before you share it. - It can over-redact. Long random-looking strings include harmless things like commit hashes. That is the safe direction to be wrong in.
- It cannot make an AI service private. Whether a provider keeps or trains on what you send is decided on their servers, after your text leaves your machine. Scrubbing reduces what you expose; it does not control what happens next. The only fully private option is software that never sends anything out.
- It does not override workplace rules. If your employer restricts AI tools, use the approved route and ask your IT or security team.
- The key file holds your real secrets. Keep it private. Never send it anywhere, and never paste it into the same place as the scrubbed text.
Next
The complete lists of commands, functions and methods: Reference.