Azlaan Electric AC Solar Center — Solar, CCTV, AC & electrical work, Faisalabad Call: 0300-8987448

Htpasswd Generator

Create entries for an Apache .htpasswd file — to protect a directory with a password. The hash is made in your browser only; your password is never sent anywhere.

Apache 2.4 supports both. $apr1$ is more secure.
Each entry is added on a new line — you can build a file with many users.

How to use

  1. Type a username and password (or press Random).
  2. Choose the hash algorithm and press "Generate Entry".
  3. Copy the entry or download the full .htpasswd file.
  4. Use it in Apache with AuthUserFile and Require valid-user.

Tips

  • Store the .htpasswd file outside your public web folder if possible.
  • Usernames cannot contain a space or a colon.
  • The $apr1$ option works on almost all Apache versions.
  • You can add many users — each entry goes on its own line.

Frequently Asked Questions (FAQ)

What is an htpasswd file?

It is the password file Apache uses for basic authentication, for example to protect a directory with a username and password.

Is my password sent to a server?

No, the hash is generated only in your browser, so your password is never sent anywhere.

How do I use the generated entry?

Type a username and password, then copy the entry line into your .htpasswd file.

Is it free?

Yes, it is free with no signup.