An online tool to generate .htaccess and .htpasswd code for Basic Authentication. Enter a username and password to generate the required configuration.
Supports multiple password hashing algorithms (bcrypt, MD5, SHA-1) for secure authentication setup.
All processing is done in your browser. No credentials are sent to any server.
Enter credentials
Type a username and password for the authentication.
Select hash method
Choose bcrypt, MD5, or SHA-1 for password hashing.
Copy and deploy
Copy the .htaccess and .htpasswd code and place them on your server.
- Basic Authentication
- An HTTP authentication method that restricts access using username and password.
- .htaccess
- Apache web server configuration file used to set up Basic Auth.
- .htpasswd
- File that stores usernames and hashed passwords for Basic Auth.
- bcrypt
- The most secure password hashing algorithm. Supported in Apache 2.4+.
- Digest Authentication
- A more secure alternative to Basic Auth where passwords are hashed before transmission.
- Q. Does this work with Nginx?
- A. This tool generates Apache .htaccess/.htpasswd format. Nginx requires different configuration.
- Q. Which hash method is recommended?
- A. bcrypt is the most secure. Use MD5 if you need compatibility with Apache < 2.4.
- Q. Can I add multiple users?
- A. Yes, add multiple lines to the .htpasswd file for each user.
- Q. Is my data sent to a server?
- A. No. All processing is done in your browser.
- Q. Can I use this on mobile?
- A. Yes, the tool is fully responsive.
🔒
Development Protection
Password-protect staging sites to prevent public access.
🛡️
Admin Panel Security
Add Basic Auth to /wp-admin/ for double security.
🖥️
Staging Protection
Restrict access to staging environments.
🏢
Internal Tools
Protect internal company tools from unauthorized access.