]> jfr.im git - solanum.git/blame - tools/README.mkpasswd
Pedantry: Make indentation consistent in example and reference confs.
[solanum.git] / tools / README.mkpasswd
CommitLineData
212380e3
AC
1mkpasswd.c documentation
2$Id: README.mkpasswd 6 2005-09-10 01:02:21Z nenolod $
3
4This is documentation for the updated mkpasswd.c included with a number
5of ircd, irc services, and non-IRC related programs
6
69b2e745 7This version of mkpasswd can create DES, Extended DES, Blowfish, and MD5
212380e3
AC
8passwords, with either randomly generated or user provided salts.
9
10Options:
11-m Generate an MD5 password
12-d Generate a DES password
69b2e745 13-b Generate a Blowfish password
212380e3 14-e Generate an Extended (BSDi) DES password
69b2e745
LS
15-l Specify a length for a random MD5 or Blowfish salt
16-r Specify a number of rounds for a Blowfish or Extended DES password
17 Blowfish: no more than 6 recommended, no less than 4 accepted
212380e3
AC
18 Extended DES: default of 25
19-s Specify a salt, 2 alphanumeric characters for DES, up to 16 for MD5,
69b2e745 20 up to 22 for Blowfish, 2 for Extended DES
212380e3
AC
21-p Specify a plaintext password to use
22-? Get brief help
23-h Get extended help
24
25Without the presence of any parameters, it'll behave like the old mkpasswd,
26creating a DES password with a randomly generated salt and prompting for
27the password (without echo).
28
29A DES salt is a pair of alphanumeric characters ('.' and '/' are permitted
30as well), such as 'a4' or 'Td'.
31
32An MD5 salt consists of up to 16 (though most implementations limit you to
338) alphanumeric characters (plus '.' and '/'),
34such as 'tGd' or 'J6d4dfG'.
35
69b2e745
LS
36A Blowfish salt consists of up to 22 alphanumeric characters (plus '.' and
37'/'). Blowfish also specifies a number of rounds*, by default 4.
212380e3
AC
38
39Known bugs:
40The encryption algorithms supported depend on your system's crypt()
41 implementation.
42The maximum length of an MD5 salt is limited to your systems crypt()
43 implementation, typically 8.
44
45Supported Platforms (Known and tested):
46Linux glibc (DES and MD5)
47FreeBSD 3.x (DES (MD5 maybe))
69b2e745 48FreeBSD 4.x (DES, MD5, Blowfish, Extended DES)
212380e3
AC
49Solaris 2.5-2.6 (DES only)
50Cygwin 1.1.4 (DES only)
51Prior Cygwin with the MD5 libcrypt (MD5 only)
52OpenBSD 2.7 (don't link with -lcrypt) (DES, MD5, Blowfish)
53Mac OS-X (Darwin) (don't link with -lcrypt) (DES only)
54
55An MMK build script is included, as well as an MD5 crypt() implementation
56
57Other systems probably work, but they haven't been amply tested.
58
69b2e745 59* Blowfish's rounds parameter is a logarithm, not an integer value