Generador Htpasswd
Genera entradas de autenticación básica
Use these tools directly in Chrome
Install the DailyDevTools extension — access all tools from your browser toolbar
What is Htpasswd Generator?
The .htpasswd file is used by Apache web servers to store usernames and hashed passwords for HTTP Basic Authentication — protecting directories, staging environments, or internal tools without a full authentication system. DailyDevTools' htpasswd Generator creates .htpasswd entries using MD5-APR, SHA1, or bcrypt hashing directly in your browser, with no server involved.
How to use Htpasswd Generator
- 1Enter the username and password for the account you want to create
- 2Select the hash algorithm: bcrypt (most secure), MD5-APR (widely compatible), or SHA1
- 3Click Generate to create the htpasswd entry in the correct format (username:hash)
- 4Copy the entry and append it to your .htpasswd file on your server
Frequently asked questions
Which hash algorithm should I use for .htpasswd?
Use bcrypt whenever your Apache version supports it (2.4+). It is the most secure option due to its computational cost, which makes brute-force attacks impractical. MD5-APR is the default and widely supported. Avoid plain SHA1 and crypt for new setups.
How do I protect a directory with .htpasswd?
Add an .htaccess file to the directory with: AuthType Basic, AuthName 'Protected Area', AuthUserFile /path/to/.htpasswd, Require valid-user. Place the .htpasswd file outside the web root for security.
Can multiple users be in one .htpasswd file?
Yes. Each line in the .htpasswd file represents one user: username:hashedpassword. Add multiple lines (one per user) to allow multiple users to authenticate. Generate each user's entry separately and append them to the file.
Comments
También te puede gustar
Explora otras herramientas populares para desarrolladores