Skip to content
ZeroServer.tools

htpasswd Generator

Create a bcrypt .htpasswd line for Apache or nginx basic auth.

Using htpasswd for basic auth

A .htpasswd file holds user:hash lines that Apache or nginx use for HTTP Basic Authentication. This generator uses bcrypt (the modern, secure choice) and emits the $2y$ identifier Apache expects. Hashing happens in your browser — your password is never sent anywhere.

Related: the bcrypt generator, the Basic Auth header generator, and the password generator.

Related Cryptography & Security tools