Opened 15 years ago

Closed 10 years ago

#35 closed enhancement (fixed)

Password encryption utility

Reported by: eagle Owned by: eagle
Priority: low Milestone: 2.5.4
Component: doc Version:
Severity: wishlist Keywords:


ckpasswd -f expects crypt() passwords, and not everyone has a copy of htpasswd handy. Attached is a C program from Ajax Ajax <ajax255@…> to generate the password hash. Something like this should probably be included for people who don't have htpasswd.

Attachments (1)

mkcryptpw.tar.gz (586 bytes) - added by eagle 15 years ago.
mkcryptpw utility

Download all attachments as: .zip

Change History (2)

Changed 15 years ago by eagle

Attachment: mkcryptpw.tar.gz added

mkcryptpw utility

comment:1 Changed 10 years ago by Julien ÉLIE

Component: utilitiesdoc
Milestone: 2.5.4
Resolution: fixed
Status: newclosed

Instead of adding a program to generate the password hash, document in the ckpasswd man page shipped with INN how to generate such password hashes.

Fixed in INN 2.5.4 with commit [9489]:

INN does not come with a utility to create the encrypted passwords, but htpasswd (which comes with Apache) can do so and it's a quick job with Perl (see the example script under -d, or also below). If using Apache's htpasswd program, be sure to give it the -d option so that it will use crypt(3).

A line in filename for the user user with the password pass would be user:LIfOpbjNaEQYE as obtained by the following commands:

% htpasswd -nbd user pass

% perl -e 'print "user:".crypt("pass", "LI")."\n";'

Note: See TracTickets for help on using tickets.