| 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 |
6585 |
This version of mkpasswd can create Blowfish, MD5, SHA-256 and SHA-512 |
| 6 |
|
|
passwords, with either randomly generated or user provided salts. |
| 7 |
adx |
30 |
|
| 8 |
|
|
Options: |
| 9 |
michael |
1272 |
-6 - Create a SHA-512 password |
| 10 |
|
|
-5 - Create a SHA-256 password |
| 11 |
adx |
30 |
-m - Create an MD5 password |
| 12 |
michael |
6245 |
-b - Create a Blowfish password |
| 13 |
adx |
30 |
-l - Specify the length of a random MD5 salt |
| 14 |
michael |
6585 |
-r - Specify a number of rounds for a Blowfish password |
| 15 |
adx |
30 |
-p - Specify the plaintext password at the command line |
| 16 |
|
|
-s - Specify the salt at the command line |
| 17 |
michael |
1272 |
-R - Specify a raw salt passed directly to crypt() |
| 18 |
adx |
30 |
-h - Get help |
| 19 |
|
|
|
| 20 |
michael |
3130 |
If no parameter is given, it will create an MD5 password with a randomly |
| 21 |
|
|
generated salt and prompting for the password (without echo). |
| 22 |
adx |
30 |
|
| 23 |
|
|
An MD5 salt consists of up to 16 (though most implementations limit you to |
| 24 |
|
|
8) alphanumeric characters (plus '.' and '/'), |
| 25 |
|
|
such as 'tGd' or 'J6d4dfG'. |
| 26 |
|
|
|
| 27 |
|
|
Known bugs: |
| 28 |
|
|
The encryption algorithms supported depend on your system's crypt() |
| 29 |
|
|
implementation. |
| 30 |
michael |
3130 |
The maximum length of an MD5 salt is limited to your system's crypt() |
| 31 |
adx |
30 |
implementation, typically 8. |
| 32 |
|
|
|
| 33 |
|
|
Supported Platforms (Known and tested): |
| 34 |
michael |
6585 |
Linux glibc (SHA-256/SHA-512 since glibc 2.7, and MD5) |
| 35 |
|
|
FreeBSD 10.2 (SHA-256/SHA-512, Blowfish, and MD5)) |
| 36 |
|
|
OpenBSD 5.8 (Blowfish) |
| 37 |
adx |
30 |
|
| 38 |
|
|
Other systems probably work, but they haven't been amply tested. |