1 |
knight |
31 |
$Id$ |
2 |
adx |
30 |
|
3 |
michael |
3071 |
This is documentation for the mkpasswd.c included in ircd-hybrid. |
4 |
adx |
30 |
|
5 |
michael |
6244 |
This version of mkpasswd can create DES, Extended DES, Blowfish, MD5, |
6 |
michael |
3071 |
SHA-256 and SHA-512 passwords, with either randomly generated or user |
7 |
|
|
provided salts. |
8 |
adx |
30 |
|
9 |
|
|
Options: |
10 |
michael |
1272 |
-6 - Create a SHA-512 password |
11 |
|
|
-5 - Create a SHA-256 password |
12 |
adx |
30 |
-m - Create an MD5 password |
13 |
michael |
6244 |
-b - Create a Blowfish password |
14 |
adx |
30 |
-d - Create a DES password |
15 |
michael |
1272 |
-e - Create an Extended DES password |
16 |
adx |
30 |
-l - Specify the length of a random MD5 salt |
17 |
michael |
6244 |
-r - Specify a number of rounds for a Blowfish or Extended DES password |
18 |
adx |
30 |
-p - Specify the plaintext password at the command line |
19 |
|
|
-s - Specify the salt at the command line |
20 |
michael |
1272 |
-R - Specify a raw salt passed directly to crypt() |
21 |
adx |
30 |
-h - Get help |
22 |
|
|
|
23 |
michael |
3130 |
If no parameter is given, it will create an MD5 password with a randomly |
24 |
|
|
generated salt and prompting for the password (without echo). |
25 |
adx |
30 |
|
26 |
|
|
A DES salt is a pair of alphanumeric characters ('.' and '/' are permitted |
27 |
|
|
as well), such as 'a4' or 'Td'. |
28 |
|
|
|
29 |
|
|
An MD5 salt consists of up to 16 (though most implementations limit you to |
30 |
|
|
8) alphanumeric characters (plus '.' and '/'), |
31 |
|
|
such as 'tGd' or 'J6d4dfG'. |
32 |
|
|
|
33 |
|
|
Known bugs: |
34 |
|
|
The encryption algorithms supported depend on your system's crypt() |
35 |
|
|
implementation. |
36 |
michael |
3130 |
The maximum length of an MD5 salt is limited to your system's crypt() |
37 |
adx |
30 |
implementation, typically 8. |
38 |
|
|
|
39 |
|
|
Supported Platforms (Known and tested): |
40 |
michael |
3071 |
Linux glibc (SHA-256/SHA-512 since glibc 2.7, DES and MD5) |
41 |
adx |
30 |
FreeBSD 3.x (DES (MD5 maybe)) |
42 |
|
|
FreeBSD 4.x (DES and MD5) |
43 |
|
|
Solaris 2.5-2.6 (DES only) |
44 |
michael |
6576 |
OpenBSD 5.7 (DES, Extended DES and Blowfish; note that (Extended)DES support has been dropped in 5.8) |
45 |
adx |
30 |
Mac OS-X (Darwin) (don't link with -lcrypt) (DES only) |
46 |
|
|
|
47 |
|
|
Other systems probably work, but they haven't been amply tested. |