htpasswd Generator
Create an Apache or nginx htpasswd line using a salted SHA-1 or plain SHA-1 hash.
POST /api/v1/htpasswd- API version
- v1
- Output schema
- 1
The endpoint path is always /v1. The schema number below tracks this tool's output shape and changes independently.
Create a free account →Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
| user | text | yes | — |
| password | text | yes | — |
| scheme | sha1 | ssha | no | ssha |
Request
curl -X POST https://sinikoding.dev/api/v1/htpasswd \ -H 'content-type: application/json' \ -H 'x-api-key: tk_live_…' \ -d '{"user":"…","password":"…","scheme":"ssha"}'
Returns
"output": { "kind": "text", "value": "…" }
Calls a same-origin sandbox endpoint, not /api/v1. No key needed, capped at 15 requests a minute.
Request
curl -X POST https://sinikoding.dev/api/v1/htpasswd \ -H 'content-type: application/json' \ -H 'x-api-key: tk_live_…' \ -d '{"user":"","password":"","scheme":"ssha"}'
Response
Send a request to see the response.