ScholarCraft Home / Workflow Guides / PromptShield
100% Local in Browser · Zero Server Upload · Free Live Tool

Redact API Keys, DB URIs & PII Before Pasting Into ChatGPT or Claude — Then Restore in 1 Click

Blind [REDACTED] masking breaks stack-trace debugging because the LLM cannot tell which host, token, or user ID corresponds to which error — while pasting real secrets risks leaking production credentials.

Interactive Browser Tool — PromptShield (runs locally on your machine) Open Fullscreen ↗

Why Researchers & Engineers Use PromptShield

  • Deterministic typed placeholders ([OPENAI_KEY_1], [DB_URI_1], [EMAIL_1]) keep every entity relationship intact for ChatGPT, Claude, and Gemini.
  • 1-click Local Restore swaps placeholders in the AI's fixed code or config back to your real values in browser RAM.
  • 30+ detectors with checksum validation (Luhn card check, GB 11643-1999 ID check, PEM, JWT, AWS, Stripe, GitHub, Slack, HF, DB URIs).
  • Strictly zero outbound network calls — verify in DevTools Network tab or run with Wi-Fi turned off.

Deterministic Reversible Masking Example

Raw:      DATABASE_URL=postgres://admin:S3cr3t@db.prod:5432/app
Masked:   DATABASE_URL=[DB_URI_1]
AI Fix:   DATABASE_URL=[DB_URI_1]?sslmode=require
Restored: DATABASE_URL=postgres://admin:S3cr3t@db.prod:5432/app?sslmode=require

Visual Walkthrough

PromptShield live workflow walkthrough

Want offline Chrome Side Panel access, batch ZIP exports, or zero-dependency Python CLIs? Use starter code STARTER20 for 20% off any one-time Pro pack or the 6-tool bundle.

Get Free Starter Kit ($0+) + 20% Off Code

Frequently Asked Questions

How can I verify PromptShield sends zero data over the internet?

Open Chrome DevTools -> Network tab, paste sample secrets, click Mask, and observe zero outbound requests. It works identically with Airplane Mode on.

Does it destroy .env variable names?

No. PromptShield masks only the secret value while preserving keys like DATABASE_URL= and OPENAI_API_KEY= so the LLM understands your config structure.

Where is the reversible token vault stored?

Only in local browser session memory — never synced to any remote server.

What does PromptShield Pro ($15 one-time) add?

Chrome Side Panel quick integration for ChatGPT/Claude/Gemini, batch CSV/JSON/log file scrubbing to ZIP, and custom regex/entity profiles.

Related Local-First Research Tools