Generates the .htpasswd and .htaccess files to protect a web directory with HTTP Basic authentication. Password is bcrypt-hashed server-side and never stored.
Generates the .htpasswd and .htaccess files to protect a web directory with HTTP Basic authentication. Password is bcrypt-hashed server-side and never stored.
The .htpasswd + .htaccess pair is the classic way to protect a directory on an Apache (or compatible) server with HTTP Basic authentication. The .htpasswd file holds the user:hash pairs. The .htaccess file, placed in the protected folder, tells Apache where to find .htpasswd and triggers the browser auth prompt.
This tool uses bcrypt exclusively, the OWASP-recommended standard for password storage. Legacy algorithms (crypt, MD5, SHA-1, plaintext) are intentionally excluded for security reasons.
Modern, slow, salted algorithm (Blowfish). Resistant to brute-force and rainbow tables. Natively supported by Apache 2.4+ and all modern Unix servers.
Fast to compute and vulnerable to rainbow tables / GPU attacks. Plaintext is trivially readable. Avoid — only use them to migrate from a legacy system, never for a new install.
HTTP Basic auth sends credentials with every request — always pair it with HTTPS. It does not replace a full session system (rotation, expiry, MFA). For sensitive data, prefer application-level auth (OAuth2, sessions, etc.). By using this tool, you acknowledge being responsible for the security of your infrastructure.
Décrivez votre besoin en quelques lignes — nous vous contacterons au plus vite.