Password Hash
password_hashHash, verify and identify password hashes — for seeding users, migrating auth systems, writing htpasswd files and auditing leaked hash formats. hash: bcrypt, Argon2id / Argon2i (where the server has libargon2), PBKDF2-SHA256 / SHA512 (Django format), SHA-512 / SHA-256 crypt (Linux shadow) and Apache APR1 (htpasswd). verify: checks a password against bcrypt, Argon2, crypt ($1$ $5$ $6$, DES), APR1, Django / Werkzeug / passlib PBKDF2, phpass ($P$ $H$, WordPress), Drupal 7 ($S$), LDAP {SSHA} / {SHA} / {SSHA256} / {SSHA512} / {SMD5}, MySQL 4.1+ and unsalted MD5 / SHA / NTLM hex. identify: algorithm, parameters and a verdict against the OWASP Password Storage Cheat Sheet, with needsRehash. Passwords are never echoed or stored. Price: $0.002 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/password-hash
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "password_hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | bcrypt cost (default 12) | |
| hash | No | verify / identify: the stored hash | |
| mode | No | hash | |
| password | No | ||
| timeCost | No | Argon2 iterations | |
| username | No | apr1: also return an htpasswd line | |
| algorithm | No | bcrypt | |
| memoryKiB | No | Argon2 memory (KiB) | |
| iterations | No | PBKDF2 iterations (default OWASP: 600,000 SHA256 / 210,000 SHA512) or crypt rounds (default 656,000) |