RedActor — Anonymize Code in 1 Click
Anonymize sensitive data (emails, API keys, IPs, URLs) in code and logs instantly.
Stop leaking secrets to AI, issues, and chats.
RedActor anonymizes sensitive data directly in VS Code, locally.
Example
Before
User: marco.rossi@company.com
API: https://payments.internal.company.com/v1/charge
IP: 10.42.18.7
After
User: user@example.com
API: https://example.com/v1/charge
IP: 0.0.0.0
Why people install it
- Fast: run from the context menu or command palette
- Local: no cloud, no API calls, no data leaves your machine
- Useful: preview the diff before sharing
What it anonymizes
- Emails →
user@email.com
- URLs →
https://example.com
- IPs →
0.0.0.0
- Secrets/keys →
SECRET_1, SECRET_2, ...
- Names →
PERSON_1, PERSON_2, ...
- Your custom regex patterns
Commands
Anonymize Code (redactor.anonymize)
Anonymize Code (Preview Diff) (redactor.diff)
1-second setup
- Open your file
- Right-click → Anonymize Code
- Done — safe to share
Custom rules (team-ready)
"redactor.customPatterns": [
{
"name": "Internal Ticket",
"regex": "/TICKET-[0-9]+/g",
"replace": "TICKET-XXX"
}
]
Recommended settings
"redactor.openInNewTab": true,
"redactor.highlight.enabled": true,
"redactor.highlight.color": "rgba(0, 255, 0, 0.15)"
When to use
- Before pasting code into AI tools (ChatGPT, Copilot)
- Before posting logs on Slack or GitHub issues
- Before sharing snippets on Stack Overflow
Copy less risk. Paste with confidence.