πŸ” htpasswd Generator

Updated: 2026-07-12
Ad Space - Top (728x90)

Generate htpasswd Hash

πŸ“‹ Result

.htpasswd file content: Enter username and password then click "Generate"...
Ad Space - Bottom (728x90)

πŸ“– How to Use

1. Enter Credentials: Fill in username and password, select algorithm (bcrypt recommended).

2. Generate Hash: Click "Generate" β€” the hash is computed in your browser.

3. Copy & Use: Add the generated string to your server's .htpasswd file.

❓ FAQ

What is this tool for?

htpasswd creates password files (.htpasswd) for Apache/Nginx HTTP basic authentication. This tool uses the Web Crypto API to generate encrypted hashes locally in your browser, supporting bcrypt (recommended), SHA-256, SHA-512, MD5, SHA-1, and crypt algorithms.

Which algorithm is recommended?

bcrypt is strongly recommended. It includes built-in salting and a cost factor of 10 (1024 iterations), making it highly resistant to brute-force attacks. MD5 and SHA-1 have known weaknesses. Apache 2.4+ and Nginx support bcrypt format ($2y$ prefix).

Is my password sent anywhere?

No. All encryption runs locally in your browser. Your password never leaves your device. The Web Crypto API provides secure hash computation. The resulting hash is one-way and can be safely stored in your server's .htpasswd file.