{"uid":"cap_0udc6Buu77Fnzi65fag4T","slug":"pwned-password-check-k-anonymity-sha-1-99e2f491","name":"Pwned Password Check (k-Anonymity SHA-1)","description":"Seen in breaches? Send the password's SHA-1 (never the password); only 5 hex chars go upstream. Count and verdict.","url":"https://dev-utils.x402tookit.com/pwned-password?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["sha1"],"properties":{"sha1":{"type":"string","description":"40-hex SHA-1 of the password, computed by you, so the password itself never reaches this service"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"count":{"type":["null","number"]},"found":{"type":["boolean","null"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"inputMode":{"type":["null","string"]},"sourceUrl":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"rowsInRange":{"type":["null","number"]},"hashPrefixSentUpstream":{"type":["null","string"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1LwcVhhgOxFXIzmNUNdyL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether a password has appeared in known data breaches using k-anonymity: you send only the first 5 hex chars of its SHA-1 hash, and the service returns a breach count and verdict.","exampleAgentPrompt":"Check if the password 'CorrectHorseBatteryStaple' has ever shown up in a data breach — compute its SHA-1 hash yourself and use the k-anonymity lookup so the actual password never leaves my machine.","exampleUseCases":[{"title":"User registration password vetting","prompt":"Before I create a new account for this user, check if the password they chose has ever appeared in a known breach — hash it to SHA-1 first and use the k-anonymity check so the plaintext stays local."},{"title":"Bulk credential audit for security review","prompt":"I'm auditing our internal service accounts. Can you check whether the password 'Adm1nP@ssw0rd' has been seen in any breaches? Use SHA-1 hashing and only send the 5-char prefix upstream."},{"title":"Password manager strength warning","prompt":"My password manager flagged a password I've been reusing — can you verify if 'hunter2' shows up in breach databases using the safe SHA-1 k-anonymity method, and tell me how many times it's been found?"}],"resultDescription":"Returns a JSON object with: 'found' (boolean indicating breach presence), 'count' (number of times seen in breach data), 'verdict' (short risk label), 'summary' (human-readable explanation), 'source' and 'sourceUrl' (data source attribution), 'hashPrefixSentUpstream' (the 5 hex chars actually transmitted), 'rowsInRange' (how many hashes were in the k-anonymity range), 'asOf' (data freshness timestamp), 'reasons' (list of explanatory strings), 'disclaimer', 'degraded' flag, 'inputMode', and 'notChecked' list if any checks were skipped.","failureModes":["Invalid or malformed SHA-1 hash (not 40 hex characters) returns an error","Non-hex characters in the sha1 query param cause a bad request","Upstream breach database unavailable may return degraded=true or an error","Missing required sha1 query parameter returns a validation error","Rate limiting or payment failure returns 402 or 429 responses"],"whenToPreferThis":"Choose this endpoint when you need to check password breach exposure without transmitting the raw password — it implements k-anonymity by design (only 5 hex chars go upstream), making it safe for privacy-sensitive workflows. Prefer it over full-hash or plaintext submission APIs whenever user password privacy is a requirement. Ideal for registration flows, security audits, and password manager integrations where compliance or trust matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T12:31:08.474Z","isFirstParty":false,"canonicalSlug":"pwned-password-check-k-anonymity-sha-1-99e2f491"}