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: | |
Cc: |
Description
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)
Change History (2)
Changed 15 years ago by
Attachment: | mkcryptpw.tar.gz added |
---|
comment:1 Changed 10 years ago by
Component: | utilities → doc |
---|---|
Milestone: | → 2.5.4 |
Resolution: | → fixed |
Status: | new → closed |
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
user:LIfOpbjNaEQYE
% perl -e 'print "user:".crypt("pass", "LI")."\n";'
user:LIfOpbjNaEQYE
mkcryptpw utility