shieldapi.check_password_range
Check if a password hash prefix appears in breach databases using the HIBP k-Anonymity API to identify compromised credentials.
Instructions
Look up a SHA-1 hash prefix in the HIBP k-Anonymity database.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | Yes | First 5 characters of the SHA-1 password hash |
Implementation Reference
- src/index.ts:179-187 (handler)The tool 'shieldapi.check_password_range' is registered dynamically within a loop that iterates over the 'TOOLS' configuration object. It uses the 'callShieldApi' function as its handler to perform the API request.
for (const [name, def] of Object.entries(TOOLS)) { server.tool( name, def.description, { [def.param]: z.string().describe(def.paramDesc) }, { ...readOnlyAnnotations, title: TOOL_TITLES[name] || name }, async (params) => formatResult(await callShieldApi(def.endpoint, params as Record<string, string>)) ); } - src/index.ts:44-49 (schema)Definition of the 'shieldapi.check_password_range' tool within the 'TOOLS' configuration object.
'shieldapi.check_password_range': { description: 'Look up a SHA-1 hash prefix in the HIBP k-Anonymity database.', param: 'prefix', paramDesc: 'First 5 characters of the SHA-1 password hash', endpoint: 'check-password-range', },