Skip to main content
>_laboratory.sh

HTPASSWD Generator

Generate .htpasswd entries with bcrypt hashing for basic authentication.

How to Use HTPASSWD Generator

Step 1

Enter a username and password.

Step 2

Click Generate to create a bcrypt hash entry.

Step 3

Optionally add more username:password pairs.

Step 4

Copy the output and paste it into your .htpasswd file.

Features

Bcrypt hashing compatible with Apache 2.4+ and Nginx.

Add multiple username:password entries at once.

One-click copy to clipboard.

Completely client-side — no data sent to any server.

Standard $2y$ bcrypt prefix for maximum compatibility.

FAQ

This tool uses bcrypt, the most secure algorithm supported by htpasswd. It produces hashes prefixed with $2y$ that are compatible with Apache 2.4+ and Nginx.

Yes. You can generate multiple username:hash entries and they will all appear in the output, ready to paste into your .htpasswd file.

No. All hashing happens locally in your browser using bcryptjs. Your password never leaves your device.

Copy the output and paste it into a file named .htpasswd on your server. Then configure your web server (Apache or Nginx) to use that file for basic authentication.