.htpasswd Generator
Generate an .htpasswd line for Apache/Nginx basic auth. The password is hashed on the server and not stored.
Frequently Asked Questions
What is an .htpasswd file for?
It is used for HTTP "basic authentication" on a web server; it lets you protect a path with a username and password without any coding.
Which algorithm should I choose?
bcrypt is the most secure and recommended; APR1-MD5 is for compatibility with older setups, and SHA-1 only if specifically needed.