Generate password entries for Apache .htpasswd files. Enter a username and password to create SHA-1 hashed authentication entries.
1. Copy the generated line above.
2. Create or edit .htpasswd on your server.
3. Paste one entry per line.
4. Create .htaccess in the protected directory:
AuthType Basic\nAuthName "Restricted Area"\nAuthUserFile /full/path/to/.htpasswd\nRequire valid-user
A .htpasswd file stores usernames and encrypted passwords for Apache HTTP Basic Authentication. Visitors must enter valid credentials to access protected directories.
This tool generates entries using SHA-1 hashing with Apache's {SHA} scheme. The password is hashed and Base64-encoded. For production use with sensitive data, consider the htpasswd command-line tool with bcrypt.
You need .htpasswd (credentials) and .htaccess (directives). Place .htpasswd outside your web root for security. The .htaccess file references the full server path to .htpasswd.
More from TUDITOOLS