Htpasswd Generator

This tool creates a string that stores user credentials.
Each line within the .htpasswd file contains a username and a bcrypt hashed password separated by a colon (:).
Bcrypt hashing requires Apache v2.4 onwards (2012+), which you should be on by now!



Advertisement

About

Generate a bcrypt htpasswd entry for basic authentication. The output protects a directory with a username and password.

How to use

  1. Enter a username and password.
  2. Generate the htpasswd string.
  3. Save it to an .htpasswd file on your server.

Frequently asked questions

What is htpasswd?

A file format used by Apache and LiteSpeed for basic HTTP authentication.

Why bcrypt?

bcrypt is a strong hashing algorithm designed specifically for password storage.

Where do I put the .htpasswd file?

Outside the web root, referenced from an .htaccess file.

Advertisement