sammy:$2a$10$7YSNHzeXFYwVsmJh6p0WL.tO5tF0.AQOcG27BJwWhsr64OAW/WKtu
Generate a Htpasswd

With this generator it is possible to generate a Htpasswd. An user can enter his username and password. Based on the selection of the encryption method (Bcrypt, MD5, SHA-1, Crypt and Text ) the credentials are encrypted and can be copied and pasted into the own .htpasswd file. Once clicked on the generate button, the .htpasswd credentials are created. The .htpasswd credentials can be copied to the clipboard with the corresponding copy button.

Your last generated data 1
  • Please generate some data with the above form.

What is htpasswd?

The .htpasswd file contains one or more credentials needed for authorization when an user requests a web-page from a proxy server that has enabled htpasswd/htaccess protection (e.g. Apache httpd). It is usually just linked in the .htaccess file where the .htpasswd file is found.

Frequently asked questions

What is a .htpasswd file?
A .htpasswd file holds one or more credentials that a web server such as Apache httpd checks before it serves a protected page. It is usually referenced from a .htaccess file.
Which encryption methods can I choose?
You can generate the entry with Bcrypt, MD5, SHA-1, Crypt or as plain text.
Which method should I pick?
Of the methods offered here Bcrypt is the strongest, because it is deliberately slow to compute and therefore hard to attack by trying many passwords.
How do I use the generated line?
Copy it into your .htpasswd file, one credential per line, and point your server configuration or .htaccess at that file.