Enter the username to be used for the htpasswd file, and the password to be encrypted:
Result of htpasswd generation
Copy and paste this into your .htpasswd file
About online htpasswd generator
What is the htpasswd?
The Apache HTTP Server can use a
.htpasswd file referenced from a
.htaccess file to create restricted protected areas. The .htpasswd file contains rows corresponding to a pair of username and password separated with a colon character. The password is encrypted using the UNIX system's crypt method and may use MD5 or SHA1.
.htpasswd generator creates passwords that are hashed using the MD5 algorithm. Those passwords can be used on any platform including Windows, MacOsX and Linux.
How it Works?
Just enter username and password and an entry for a htpasswd file is generated. This htpasswd generator creates passwords that are hashed using the MD5 algorithm, which means that you can use it for sites hosted on any platform, including Windows and Linux.
Protecting a folder in Apache
To protect a specific folder, a
.htaccess file is placed in the directory you want the contents of the file to affect. The rules and configuration directives in the
.htaccess file will be enforced on whatever directory it is in and all sub-directories as well. A typical
.htaccess file looks like the following:
AuthUserFile /path/to/.htpasswd AuthType Basic AuthName "My restricted Area" Require valid-user
Do you find this tool useful? Then share it with your friends or colleagues. This will help us to make our free web tools better.