htpasswd Generator

Generate htpasswd lines for Apache/Nginx Basic Auth from a username and password (Web Crypto SHA)

도구를 불러오는 중…

🔒 Everything runs 100% in your browser. Your files and input are never uploaded to any server.

Enter a username and password and this tool generates, right in your browser, a line you can add to Apache or Nginx Basic Auth (.htpasswd). It uses the browser's built-in Web Crypto to create {SHA} (SHA-1) or {SHA256} hashes, and can also combine several accounts into a single .htpasswd file.

How to use

  1. Enter a username and password (usernames can't contain spaces or colons).
  2. Choose a hash method: {SHA} (SHA-1) or {SHA256}.
  3. Review the generated htpasswd line and copy it with 'Copy Line'.
  4. If you need multiple accounts, use 'Add to File' to collect them and copy the entire .htpasswd file at once.

FAQ

How do I apply the generated file?
In Apache, specify the path to the generated .htpasswd file with AuthUserFile; in Nginx, with auth_basic_user_file, and it can be used for Basic Auth. Each line is in the format 'username:hash'.
Is the {SHA} method secure?
{SHA} (SHA-1) is an unsalted hash, suitable for quick setup and convenience. For security-critical services, bcrypt (htpasswd -B) with salt and iterated computation is recommended, but bcrypt can't be generated in the browser, so this tool provides the SHA method.
Is the password I enter sent to a server?
No. Hash computation happens entirely in the browser's Web Crypto API, and your username and password are never transmitted to or stored on a server.

← Back to all tools

가격 보기카톡 무료 상담