Htpasswd Generator

Create a secure bcrypt .htpasswd line and .htaccess rules to password-protect a folder.

What is an .htpasswd file?

An .htpasswd file stores usernames and hashed passwords that Apache (and nginx) use for HTTP Basic Authentication, the simple login prompt that protects a folder or a whole website.

How to use the Htpasswd Generator

    Frequently asked questions

    Can I add several users?

    Yes, put one username:hash line per user in the same .htpasswd file.

    Is Basic Authentication secure?

    Only over HTTPS. Without HTTPS the password is sent in plain text.

    Is my password sent to your server?

    No, the hash is created in your browser.