LOADING...

BASIC Auth Password Generator

Create BASIC auth passwords (for .htpasswd)

Generates one Apache-compatible line in bcrypt ($2y$) form from a username and password entirely in your browser. Nothing is sent to the server. Collect lines in the area below and save them as a .htpasswd file.

About HTTP BASIC authentication

With HTTP BASIC authentication, the browser sends a username and password; the server checks them against IDs and password hashes stored in a file such as .htpasswd, and shows the page only if they match.
This tool builds BASIC-auth password lines using bcrypt ($2y$, same family as htpasswd -B). It uses salted, slow hashing that resists brute-force attacks.
Requires Apache 2.4 or later.

Passwords and generated lines are handled only in your browser. They are not sent to or stored on this server.

Sample .htaccess configuration

AuthType Basic
AuthName "Restricted Area"
AuthUserFile /full/path/to/.htpasswd
Require valid-user

Set AuthUserFile to the absolute path of .htpasswd on the server (on some setups a path relative to DocumentRoot will not work).