Scrub sensitive names and secrets from text

Remove personal names, client details, passwords, and API keys from raw logs or text while keeping technical context intact.

You getSanitized Text and redaction Summary

Prompt

Prompt
Act as a data privacy specialist. Redact all sensitive identifiers, secrets, and client details from the text provided below.

- Replace person names with generic functional labels like CLIENT_USER_A or TECH_LEAD_B.
- Replace secrets, API tokens, passwords, and private keys with REDACTED_SECRET.
- Replace client company names, internal project code names, and private domains with generic equivalents.
- Preserve error codes, timestamps, structural syntax, and technical logic so the context remains debuggable.

Output format:
1. Sanitized Text (clean copy ready to paste)
2. Redaction Summary (bulleted list of categories removed and generic labels applied)

Text to sanitize:

Example output

Example for: server error log containing customer credentials and personal names

  1. Sanitized Text
    2024-05-12 14:02:11 ERROR [auth-worker] Failed login for user CLIENT_USER_A at IP 192.0.2.14.
    Request payload: {"tenant": "CLIENT_ORG_A", "apiKey": "REDACTED_SECRET", "userEmail": "user_a@example.com"}
    Traceback: AuthTokenExpired in module token_validator.py line 44. Internal error routed to TECH_LEAD_B.
  2. Redaction Summary
  • Personal Names: Sarah Lin replaced with CLIENT_USER_A; Marcus Vance replaced with TECH_LEAD_B.
  • Secrets: Live Bearer token replaced with REDACTED_SECRET.
  • Client Details: Acme Logistics replaced with CLIENT_ORG_A; real email domain converted to example.com.
Written by AI from this prompt. Your results will vary.

Paste your log file, email thread, or ticket directly after the prompt in ChatGPT, Claude, or Gemini. As a follow-up, ask the model to highlight any ambiguous strings it wasn't certain should be redacted.

Make it repeatable

Keep using this prompt without pasting it in every time.

Keep exploring

More in AI Tools & Prompt Engineering