aspirine.org
Website utilities


(This email address is invisible to spambots,
it has been encrypted)

Online password generation and encryption for .htpasswd files

(to be used with .htaccess files)

july 6th, 2007
Version française


This htpasswd password encrypter is designed to work online or offline, to ensure total privacy. It's written in JavaScript, so the entire process runs within your computer. Nothing is transmitted to any server and we even encourage you to use this encrypter offline.
This form uses a JavaScript transcription of the htpasswd software bundled with the Apache HTTP server.

Having lots of users/passwords to add ? Try our batch htpasswd generator !

user name :
password
algorithm

characters long

copy and paste this line into your .htpasswd file


About encrypting algorithms : (See Apache's htpasswd - Manage user files for basic authentication)
Visitor authentication depends on the HTTP server software and it's operating system.
  • none (use plaintext passwords) : The Apache httpd daemon will only accept plain text passwords on Windows, Netware and TPF.
  • Crypt : DES-based algorithm. Accepted by all Unix HTTP servers, but not supported by the Apache httpd server on Windows, Netware and TPF. Note that only the first 8 characters of the password are used to form the password with this algorithm. If the supplied password is longer, the extra characters will be silently discarded.
  • MD5 : The MD5 algorithm used by htpasswd is specific to the Apache software; passwords encrypted using it will not be usable with other Web servers.
    The MD5 encryption takes a couple of seconds.
  • SHA : Use SHA encryption for passwords. Facilitates migration from/to Netscape servers using the LDAP Directory Interchange Format (ldif).

Thanks to :
Paul Johnston for his JavaScript adaptation of the MD5 and SHA-1 algorithms.
for his JavaScript adaptation of the UNIX crypt(3) algorithm.
Valid XHTML 1.1