Hash or verify a password
hash_passwordHash a password with bcrypt or argon2id, or verify a hash. Returns an htpasswd line when a username is set. The password is not stored or logged. The page in the browser never sends the password; this call only hashes the arguments you send.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"password": "<password>"
},
"name": "hash_password"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | Bcrypt cost factor, from 4 to 12. | |
| hash | No | Existing bcrypt or argon2id hash. When set, the password is verified instead of hashed. | |
| memory | No | Argon2id memory in KiB. | |
| password | Yes | Password to hash or verify. It is used only for this call and is not stored. | |
| username | No | Optional htpasswd username. A colon is not allowed. | |
| algorithm | No | bcrypt | |
| iterations | No | ||
| parallelism | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | ||
| htpasswd | Yes | ||
| verified | Yes | ||
| algorithm | Yes |