Tested tool guide
Tested browser tools
Checked August 16, 2026
What Secret Scanner for Code does, with a checked example
This tool scans a block of pasted code or config text for strings that match the shape of known credential formats - AWS access keys, GitHub/GitLab/Slack tokens, Stripe keys, generic API key assignments, and PEM-style private key headers - and lists each match with its likely type and line number. It works by pattern matching, not by understanding your code, so it has no way to know whether a matched string is a live secret, a revoked one, or a documentation placeholder that merely looks like one. The most common surprise: a clean scan is not proof the file is secret-free.
Worked example
A concrete input and expected output from the current implementation.
Input
aws_key = "AKIAIOSFODNN7EXAMPLE"
github_token = "ghp_16C7e42F292c6912E7710c838347Ae178B4a"
->
Expected output
2 potential secrets found:
Line 1: AWS Access Key ID - AKIAIOSFODNN7EXAMPLE
Line 2: GitHub Personal Access Token (classic) - ghp_16C7e42F292c6912E7710c838347Ae178B4a
AKIAIOSFODNN7EXAMPLE matches AWS's access-key-ID pattern (AKIA followed by 16 alphanumeric characters), and the ghp_ string matches GitHub's classic personal-access-token format (ghp_ followed by 36 alphanumeric characters) - both get flagged even though the AWS value is the placeholder AWS itself uses in its documentation.