Need to put a password prompt in front of a staging site or admin folder without building a login system? The new HTPasswd Generator creates a ready-to-use .htpasswd entry for HTTP Basic Auth in seconds.
What it does
- APR1, SHA-1, and plain formats — APR1 (Apache MD5) is the recommended, portable default.
- Random salt generated in your browser for each APR1 entry.
- Byte-for-byte correct output that matches the real
htpasswdbinary. - Copy or download the line straight into your
.htpasswdfile. - Works for Apache and Nginx — the same file format serves both.
Why it matters
HTTP Basic Auth is the quickest way to gate a directory with zero application code. The catch is that the hash format has to be exactly right, or the server silently rejects every login. This tool produces correct entries so protection works on the first try.
A note on security
Always serve protected directories over HTTPS, keep the .htpasswd file outside your web root, and use a strong password — generate one with the Password Generator. For the strongest hashing, create bcrypt entries server-side with htpasswd -B.
Learn more
Want to understand the file format, the hashing options, and how to wire it into your server config? Our guide to .htpasswd and HTTP Basic Auth walks through everything, then generate your entry with the HTPasswd Generator.
Related Posts
EMI API in React
Integrating the Tools.Town EMI API in a React App — A Complete Walkthrough
8 min read
Binary to Text - Now Live
Introducing the Binary to Text Converter — Two-Way and UTF-8 Aware
3 min read
Canonical Tag Generator - Now Live
Introducing the Canonical Tag Generator — Fix Duplicate URLs in Seconds
3 min read
Frequently Asked Questions
Which algorithm does it use?
Is my password uploaded?
Explore more on Tools.Town Blog
Finance guides, tool launches, and engineering stories — updated weekly.