Security & Headers • Share-Safe Redactor

.env & Config Secret Detector + Redactor

Scan .env files, YAML snippets, and config exports locally for leaked API keys, database credentials, and high-entropy secrets, then generate a clean <REDACTED_...> template to share safely.

Input & Options Local JS Execution
Zero bytes leave your browser. Detects key prefixes, DB URLs with passwords, private key headers, and high-entropy values.
Parsed Output & Diagnostics Ready
Status
...

Secret Detection Heuristics

Detector LayerExamples CaughtAction Taken
Known Vendor Prefixessk-*, sk_live_*, ghp_*, AKIA*, AIza*, xox*, eyJ*Immediate redaction + key type tag
Credentialed URIspostgres://user:pass@host, redis://:pass@hostReplaced with <REDACTED_KEY>
Sensitive Key Names*_SECRET, *_TOKEN, *_PASSWORD, *_KEY, *_DSNRedacts non-placeholder values
Shannon Entropy>= 3.7 bits/char strings (>= 24 chars)Catches unnamed random tokens

Parser Methodology & Privacy Guarantees

Combines vendor prefix regex patterns, URI userinfo matching, sensitive key name heuristics, and per-character Shannon entropy scoring offline in browser memory.

  • Parses key=value and key: value lines while preserving comments and blank lines.
  • Skips existing placeholders like <REDACTED_...>, changeme, or HTTPS URLs without userinfo credentials.
  • Outputs sanitized config preserving quote style for instant copy or .env.sanitized download.

Scope & limitations: Multi-line PEM blocks require line-by-line or single-line escaped formatting for individual variable assignment parsing.

Frequently Asked Questions

Why sanitize .env files before pasting into AI chats or bug reports?
Accidentally pasting live Stripe, OpenAI, AWS, or database connection strings into issue trackers or LLM prompts exposes production systems immediately.
What does Shannon entropy detect?
Random cryptographic keys and API tokens have higher character unpredictability (~3.7 to 5.5 bits/char) than normal human words or file paths.
Can I download the sanitized output as .env.example?
Yes. Click Download File to export .env.sanitized directly from browser memory.

Related Developer Parsers

Every parser on DevParse runs 100% inside your browser with zero backend telemetry, zero file uploads, and zero cookie banners. Support development via Fourthwall or sponsor a clean developer slot.