{"ok":true,"result":{"slug":"htpasswd-generator","name":"Htpasswd Generator","summary":"Build an Apache/nginx .htpasswd file from username:password lines, hashed with bcrypt ($2y$), APR1-MD5 ($apr1$) or SHA-1 ({SHA}).","description":"Create .htpasswd lines for Apache or Nginx basic authentication with bcrypt, Apache MD5 (APR1) or SHA-1. Add several users at once. Runs in your browser.","method":"POST","endpoint":"/api/v1/tools/htpasswd-generator","plan":"free","mcpName":"htpasswd_generator","input":{"type":"object","additionalProperties":false,"properties":{"users":{"type":"string","description":"One user per line as username:password (the first colon splits; passwords may contain colons). Up to 50 users, or 10 with bcrypt.","maxLength":20000},"algorithm":{"type":"string","description":"bcrypt (recommended), apr1 (Apache MD5, widely supported) or sha1 (legacy, unsalted).","default":"bcrypt","enum":["bcrypt","apr1","sha1"],"maxLength":200000},"cost":{"type":"integer","description":"bcrypt cost factor, 4 to 12.","default":10,"minimum":4,"maximum":12},"apr1Salt":{"type":"string","description":"Fixed APR1 salt (up to 8 characters from ./0-9A-Za-z) for reproducible output. Random when omitted.","maxLength":8}},"required":["users"]},"example":{"users":"admin:s3cret-Pass\nstaging:preview-2026","algorithm":"apr1"},"randomOutput":true,"network":false,"docs":"https://pithlab.com/developers/tools/htpasswd-generator","page":"https://pithlab.com/tools/htpasswd-generator"}}