.htpasswd generator

Generate .htpasswd lines for Apache and Nginx basic authentication, with bcrypt, APR1-MD5 or SHA1, for one or more users. At the bottom you can check whether an existing line matches a password.

Your data stays on your computer. Files are processed in your browser and are never uploaded.

Algorithm

Each extra point doubles the time. 10 is a good compromise.

Users

Your browser does not support workers: the calculation runs on the page and may slow it down for a moment.

Check a line

Paste a user:hash line and a password to see whether they match. bcrypt, APR1-MD5 and {SHA} are supported.

Which one to choose

bcrypt is slow on purpose and uses a salt: it is the right choice if Apache (2.4+) or Nginx supports it. APR1-MD5 and SHA1 work everywhere but are weak: use them only when needed.

How to use it

Save the lines in a .htpasswd file outside the public folder, then point to it with AuthUserFile in Apache or auth_basic_user_file in Nginx. With basic authentication alone, always use HTTPS.

Where the data goes

Names and passwords stay on this page: the calculation runs in your browser and nothing is saved or sent.

Keyboard shortcuts

In this tool

This tool has no keyboard actions.

Everywhere

Open this panel (outside text fields)
?
Closes panels and menus, never clears data
Esc
Search for a tool
/ or CtrlK

Tool chains

Link several tools into a path: after using a tool, “Send to…” offers the next step first. Saved chains keep only a name and the tools, never your data.

Saved chains

No saved chains.

New chain