To create passwords for HTML-pages, there are several different methods:
htpasswd
is a C-program, which is part of many HTTP-servers. It
creates or modifies a text file with passwords for the server.
htpasswd -c MyFile MyName
A existing file will be overwritten!
htpasswd MyFile MyName
dbmmanage
works like htpasswd
, but creates a
database in DBM, DB or GDBM format, which is faster then a plaintext file
and improves performance of the server. This program is a perl-script und
requires the database modules for perl. The format has to match the format
used my the Apache-db(m)-module. In some cases you have to change
lines in dbmmanage
to force perl to use the right format.
htpasswd
with the format
Username:Password:groups. The password has already to be
encrypted by crypt()
. Groups is an enumeration of groups, which
is separated by commas.The following programs read pairs of space separated usernames and passwords from STDIN and output encrypted entries for the password file.
Download Sourcecode.
Download Sourcecode.
Download applet sourcecode, sourcecode of ported crypt() function and java archive with all files.
Download Sourcecode.
Important: Only the first 8 characters are relevant. Upper- and lowercase letters are significant for usernames and passwords.