Apache HTTP Authentication and htpasswd Format
Each line contains a username, a colon, and a bcrypt hash. The tool uses cost 12 and a fresh salt for every generated entry.
Preparing your comprehensive developer toolkit
Practical Guide
Create an Apache .htpasswd entry with bcrypt locally. Load a sample or enter a username and a password of up to 72 UTF-8 bytes, then copy the generated entry.
Create an Apache .htpasswd entry with bcrypt locally. Load a sample or enter a username and a password of up to 72 UTF-8 bytes, then copy the generated entry.
Each line contains a username, a colon, and a bcrypt hash. The tool uses cost 12 and a fresh salt for every generated entry.
Create an Apache .htpasswd entry with bcrypt locally. Load a sample or enter a username and a password of up to 72 UTF-8 bytes, then copy the generated entry.
Create an Apache .htpasswd entry with bcrypt locally. Load a sample or enter a username and a password of up to 72 UTF-8 bytes, then copy the generated entry.
htpasswd is a file format used by Apache HTTP Server to store usernames and password hashes for HTTP Basic Authentication. It allows web servers to protect directories or files with password-based access control. Each entry follows the format "username:password_hash" and is used with Apache's mod_auth modules to authenticate users before granting access to protected resources.
Create an Apache .htpasswd entry with bcrypt locally. Load a sample or enter a username and a password of up to 72 UTF-8 bytes, then copy the generated entry.
Copy the generated entry (format: "username:hash") and add it to your .htpasswd file. Then configure Apache to use this file for authentication using .htaccess directives or server configuration. Ensure the file has proper permissions (600) and is stored securely outside the web root when possible.
This tool generates hashes locally in your browser using Web Crypto API - your password never leaves your device. However, for production use, consider using command-line tools (htpasswd command) or server-side generation for additional security. Always use HTTPS when transmitting htpasswd files or credentials.
Yes, htpasswd format is supported by Nginx (with auth_basic module), Caddy, and other web servers. The format is standardized, so entries generated by this tool work with any server that supports HTTP Basic Authentication with htpasswd files.
Create an Apache .htpasswd entry with bcrypt locally. Load a sample or enter a username and a password of up to 72 UTF-8 bytes, then copy the generated entry.
Official cryptographic standards and guidelines by NIST
Best practices for secure cryptographic storage
Browser cryptography API for secure operations
Guide to proper encryption implementation
Transport Layer Security protocol specification
Open the tool to try these features.