Security GUIDE

Local Secret Detection and Redaction Guide

Review masked credential patterns and preserve surrounding text while removing detected values before sharing.

Updated About 2 min read
Open Secret Exposure Redactor

Review before sharing

Open the Secret Exposure Redactor before sharing logs, source code, JSON, YAML, or configuration text. Paste content into the original editor and choose Scan for secrets. The scanner runs locally and returns masked findings, line numbers, pattern types, confidence, and severity. The original values remain visible in the input editor; finding cards and highlighted context fully mask every detected value.

Understand confidence and scope

High confidence means a recognizable credential-shaped pattern was found. It does not mean an active credential has been validated. Patterns cover Stripe-style secret keys, GitHub-style tokens, AWS-style access key IDs, bearer authorization tokens, Basic authorization credentials, PEM private key blocks, credential-bearing database URLs, and identifiable Slack or Discord webhooks. Contextual assignments such as api_key, password, client_secret, or token are classified as possible secrets. Common placeholders and environment-variable references are skipped where recognized.

JWT-shaped values receive a review finding rather than an automatic assertion that every token is confidential. Their claims may contain readable information, and authentication tokens may grant access. This tool does not validate their signatures, issuer, or permissions. Use the JWT Inspector to review claims separately, or the Encoder and Decoder to understand an encoded representation.

Redact individual values or all findings

Load Safe Example to inspect synthetic credentials with no working account access. Select Redact finding for one item, or Redact All for every detected range. Surrounding labels, punctuation, and line breaks remain. Overlapping findings are merged to avoid partial replacements. An unclosed private key block is treated conservatively: its redaction extends to the end of the input, with an explicit warning.

Highlighted output keeps unredacted detected values masked for review. Copy Sanitized Text becomes available only after every detected finding is redacted. The clipboard receives the reviewed text with redaction markers, not the masked review placeholders. Editing input clears previous findings and copy readiness. Reset clears the source and result state.

Limits and limitations

The input limit is 200,000 characters, with 8,192 characters per line and at most 500 findings. Split large or minified documents into smaller sections. Unusual, split, encoded, multiline assignments, and custom credential formats may be missed. False positives are possible. No obvious secrets detected is not a guarantee that the content is safe; review personal information and undetected values yourself.

No input is uploaded, logged, included in analytics or URLs, or persisted in browser storage. Clipboard access requires your explicit click. Leaving the page terminates processing and discards state, although JavaScript cannot guarantee physical memory erasure. Rotate any real credential that has already been exposed; redacting a later copy does not revoke it.

Ready to try it?

Secret Exposure Redactor

Review masked credential patterns and preserve surrounding text while removing detected values before sharing.

Open Secret Exposure Redactor

Related tools

Related resources