Detect API keys, tokens and private keys in pasted text and redact them.
The Secret Detector scans pasted text for common credential patterns such as AWS keys, GitHub tokens, private keys, JWTs and hard-coded passwords. It lists each finding with its line number, and produces a redacted copy of your text. It is meant as a quick check before you share logs, configs or code.
A leaked secret is a credential that ends up somewhere it should not be, such as a commit, a chat message, a support ticket or a log. Many credentials have recognisable shapes: AWS access key IDs start with AKIA, GitHub tokens with ghp_, and private keys sit between BEGIN and END markers. Scanners match these shapes with regular expressions, and also look for names such as password or api_key followed by a quoted value. Pattern matching is heuristic. It can miss secrets with no known format and can flag harmless strings. If a real secret has been exposed, redacting the text is not enough: the credential should be treated as compromised, revoked and replaced, because it may already have been copied.
No. The scan is heuristic and only knows the listed patterns, so secrets in other formats can be missed.
Yes. Example keys, test fixtures and placeholder tokens match the same patterns as real ones.
Revoke or rotate it with the provider and check for use of it. Removing it from text does not remove the risk if it was already shared.
AWS access key IDs, GitHub tokens, Slack tokens, Stripe secret keys, Google API keys, private key blocks, JWTs, bearer tokens, credentials in URLs and hard-coded secrets.
No. The scan runs in the page and the text is not sent to a server.