1 |
|
mkpasswd.c documentation |
2 |
|
$Id$ |
3 |
|
|
4 |
< |
This is documentation for the mkpasswd.c included in ircd-hybrid-7. |
4 |
> |
This is documentation for the mkpasswd.c included in ircd-hybrid-8. |
5 |
|
|
6 |
|
This version of mkpasswd can create both DES and MD5 passwords, with |
7 |
|
either randomly generated or user provided salts. |
8 |
|
|
9 |
|
Options: |
10 |
+ |
-6 - Create a SHA-512 password |
11 |
+ |
-5 - Create a SHA-256 password |
12 |
|
-m - Create an MD5 password |
13 |
+ |
-b - Create a BlowFish password |
14 |
|
-d - Create a DES password |
15 |
+ |
-e - Create an Extended DES password |
16 |
|
-l - Specify the length of a random MD5 salt |
17 |
+ |
-r - Specify a number of rounds for a BlowFish or Extended DES password |
18 |
|
-p - Specify the plaintext password at the command line |
19 |
|
-s - Specify the salt at the command line |
20 |
+ |
-R - Specify a raw salt passed directly to crypt() |
21 |
|
-h - Get help |
22 |
|
|
23 |
|
Without the presence of any parameters, it'll behave like the old mkpasswd, |
37 |
|
implementation. |
38 |
|
The maximum length of an MD5 salt is limited to your systems crypt() |
39 |
|
implementation, typically 8. |
34 |
– |
crypt.c (MD5 implementation) is included, but not yet compiled into the |
35 |
– |
program for systems that do not support MD5. |
40 |
|
|
41 |
|
Supported Platforms (Known and tested): |
42 |
|
Linux glibc (DES and MD5) |