A worked example, rendered from real sample data. Sign in to run the tool on your own input.
const aws_key = "AKIA1234567890ABCDEF";
const db_url = "postgres://admin:password123@db.example.com:5432/prod";
const stripe_key = "sk_live_abc123def456ghi789jkl012";
const github_token = "ghp_abc123def456ghi789jkl012mnop";
const slack_webhook = "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX";
const jwt_token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c";
const apikey = "api_key=1234567890abcdef1234567890abcdef";Scanned 7 lines.
Found 8 potential secret(s):
Line 1: [AWS Access Key] AKIA1234...CDEF (CRITICAL)
Line 5: [AWS Secret Key] com/serv...XXXX (CRITICAL)
Line 6: [AWS Secret Key] eyJzdWIi...Ikpv (CRITICAL)
Line 5: [Slack Webhook] hooks.sl...XXXX (HIGH)
Line 3: [Stripe Key] sk_live_...l012 (HIGH)
Line 6: [JWT Token] eyJhbGci...sw5c (HIGH)
Line 7: [Generic API Key] api_key=...def" (MEDIUM)
Line 2: [Password in URL] ://admin...123@ (HIGH)
Review each finding — some may be false positives.
Scan text/code for leaked API keys, tokens, and credentials. Part of the DevTools Surf developer suite. Browse more tools in the Security / Crypto collection.