Generates an Apache/nginx htpasswd compatible based hash value.

This tool will help to generate/verify the httpaswd compatabile hash password generated using the alogorithm crypt,APR,SHA-256,SHA-512,bcrypt





Related Tool



Your Support Matters!

Instead of directly asking for donations, I'm thrilled to offer you all nine of my books for just $9 on leanpub By grabbing this bundle you not only help cover my coffee, beer, and Amazon bills but also play a crucial role in advancing and refining this project. Your contribution is indispensable, and I'm genuinely grateful for your involvement in this journey!

Any private key value that you enter or we generate is not stored on this site, this tool is provided via an HTTPS URL to ensure that private keys cannot be stolen, for extra security run this software on your network, no cloud dependency



htpasswd

The command line tool htpasswd is used to create and update the flat-files used to store usernames and password for basic authentication of HTTP users

htpasswd uses Modular Crypt format used when storing passwords in the OpenBSD password file

  • $1$: APR-MD5-based crypt (md5crypt)
  • $2$: Blowfish-based crypt (bcrypt)
  • $sha1$: SHA-1-based crypt (sha1crypt)
  • $5$: SHA-256-based crypt (sha256crypt’)
  • $6$: SHA-512-based crypt (sha512crypt)

Generare CRYPT encryption of the password (8 chars max, insecure)

$ htpasswd -b -d -c .htpassswd admin test101
Adding password for user admin
$ cat .htpassswd
admin:.ley.xCJWsLT.

Generate bcrypt encryption of the password (very secure)

$ htpasswd -b -B -c .htpassswd admin test101
Adding password for user admin
$ cat .htpassswd
admin:$2y$05$FV6RMPVXMJDABkT4UQEs7eXpl3YM7WPOBsBQXWsT6xeUMnc6X3Gz.

Generate MD5 encryption of the password

$ htpasswd -b -c .htpasswd admin test101
Adding password for user admin
$ cat .htpasswd
admin:$apr1$O8CSqy3G$eR8kU3J0Nzg8c2fcSzpNG/

Generate SHA encryption of the password

$ htpasswd -b -s -c .htpasswd admin test101
Adding password for user admin
$ cat .htpasswd
admin:{SHA}0qukM7hSEFaiMSqfMoUoRRQlCXA=

Openssl

Using Openssl to generate MD5 and crypt value

$ openssl passwd -apr1 myPassword
$apr1$mFIpAjrA$NAOcmkuqusma2xhRr5URy0
$ openssl passwd -crypt myPassword
Warning: truncating password to 8 characters
oAz68B2Eul9CA