Site.eu

htpasswd Generator

htpasswd Generator

Generate htpasswd line

How to use?

Enter a username and password and click Generate to get a ready-to-paste username:hash line. Save it to your .htpasswd file and reference it in .htaccess. All hashing runs in your browser—no data is stored.

Apache example

# .htaccess
AuthType Basic
AuthName "Restricted"
AuthUserFile /var/www/example/.htpasswd

Require valid-user

Save the generated line into .htpasswd. Use strict file permissions.