# Secret Scanner

Paste text or drop config and code files to list likely secrets with file, line and rule before you publish or share them. Values are masked by default and you can save a copy with them replaced by \*\*\*. A helper only — it cannot guarantee that nothing is missed.

- URL: https://tools.itlibra.com/en/secret-scanner
- On-device・No upload
- Last updated: 2026-11-28

## How to use

1. Paste text, or drop files (several at once) / click “Choose files”. “Try a sample” shows how it works.
2. Findings are listed by severity with file, line, column and rule. Values are masked.
3. Turn on “Show values” if you need to see them (on screen only; reports never include them).
4. Adjust the high-entropy threshold, or turn that rule off if you get too many false positives.
5. Save a CSV or JSON report, or a “Redacted copy” with every detected value replaced by \*\*\*.

## Use cases

- Check config files for leftover API keys before pushing to GitHub
- Strip tokens and passwords from logs or configs before sharing them outside your team
- Make sure a .env or docker-compose.yml sample holds no real values
- Remove credentials from a code snippet before pasting it into an AI assistant

## What it does

### Dedicated rules for common services

AWS access keys, GitHub and GitLab tokens, Slack tokens and webhooks, Stripe, Google API keys, OpenAI/Anthropic-style keys, JWTs and PEM private keys each have their own pattern.

### Assignments and connection strings

Catches password= / api\_key: style assignments and the password inside postgres://, mysql://, mongodb:// and similar URLs. Placeholders such as ${VAR} or \<your-key\> are ignored.

### Entropy for unknown secrets

Random-looking strings of 24+ characters are flagged by Shannon entropy (default 4.2 bits/char, 3.6 for hex). UUIDs and plain words are skipped. The threshold is adjustable.

### Masked by default

The list and the CSV/JSON reports contain only masked values. “Show values” is a screen-only convenience and never changes what you save.

### Redacted copy

Saves the file with only the detected values replaced by \*\*\*; one file downloads directly, several as a ZIP. Everything else is left untouched.


## Capability matrix

| Feature | Support | Notes |
| --- | --- | --- |
| Pasted text and multiple files | Supported | — |
| Keys, private keys and JWTs of common services | Supported | — |
| Password assignments and DB connection strings | Supported | — |
| Entropy-based candidates for unknown secrets | Partial | Expect false positives and misses |
| Redacted copy with \*\*\* in place of detected values | Supported | — |
| Scanning inside ZIPs or binary files | Not supported | Binary files are skipped |
| Scanning Git history or revoking secrets | Not supported | — |
| Checking whether a found secret is still valid | Not supported | No network requests are made |

## Limits & notes

- This is a helper. It does not guarantee that nothing is missed, nor that every finding is a real secret. Review the result yourself before publishing.
- Up to 5 MB per file, 200 files and 5,000 findings. Binary files (containing NUL bytes) are skipped.
- Files are read as UTF-8; Shift\_JIS and other encodings may be garbled and missed.
- A secret that was ever published must be revoked (rotated) at its issuer; deleting the text is not enough.
- It also works on phones, but for multi-file or large scans a computer is recommended.

## Privacy & safety

Pasted text and files are scanned only inside your browser. Nothing is sent to or stored on a server, and usage analytics never include content or file names.

## FAQ

### Is it safe to paste real config files?

Scanning runs entirely in your browser and makes no network requests, so sensitive files stay on your device.

### Does “no findings” mean it is safe?

No. Custom key formats and unusual notations are not detected. Use it as an aid and also review manually and scan your Git history.

### What if I get too many false positives?

Turn off the high-entropy rule or raise its threshold. Hashes and build IDs can look like tokens.

### I already pushed a secret to GitHub. What now?

Revoke it and issue a new one first — it may have been copied even if you remove it from history.

### Does the redacted copy overwrite my file?

No. Your original is untouched; the redacted content is saved as a new file.
