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.