2007-01-25 07:40:21 +01:00
|
|
|
mkpasswd.c documentation
|
|
|
|
|
|
|
|
This is documentation for the updated mkpasswd.c included with a number
|
|
|
|
of ircd, irc services, and non-IRC related programs
|
|
|
|
|
2016-03-21 15:12:59 +01:00
|
|
|
This version of mkpasswd can create Blowfish, MD5, SHA256, and SHA512 crypted
|
2007-01-25 07:40:21 +01:00
|
|
|
passwords, with either randomly generated or user provided salts.
|
|
|
|
|
|
|
|
Options:
|
2016-03-21 15:12:59 +01:00
|
|
|
-x Generate a SHA256 password
|
|
|
|
-y Generate a SHA512 password
|
2007-01-25 07:40:21 +01:00
|
|
|
-m Generate an MD5 password
|
2011-01-06 06:20:04 +01:00
|
|
|
-b Generate a Blowfish password
|
|
|
|
-l Specify a length for a random MD5 or Blowfish salt
|
2016-03-21 15:12:59 +01:00
|
|
|
-r Specify a number of rounds for a Blowfish password
|
|
|
|
Default 4, no more than 6 recommended
|
|
|
|
-s Specify a salt, up to 16 for MD5, SHA256, and SHA512
|
|
|
|
up to 22 for Blowfish
|
2007-01-25 07:40:21 +01:00
|
|
|
-p Specify a plaintext password to use
|
|
|
|
-? Get brief help
|
|
|
|
-h Get extended help
|
|
|
|
|
2016-03-21 15:12:59 +01:00
|
|
|
Without the presence of any parameters, it'll generate a SHA512 hash with a
|
|
|
|
randomly generated salt and prompting for the password (without echo).
|
2007-01-25 07:40:21 +01:00
|
|
|
|
2016-03-21 15:12:59 +01:00
|
|
|
An MD5, SHA256, and SHA512 salt consists of up to 16 alphanumeric characters
|
|
|
|
(plus '.' and '/'), such as 'tGd' or 'J6d4dfG'.
|
2007-01-25 07:40:21 +01:00
|
|
|
|
2011-01-06 06:20:04 +01:00
|
|
|
A Blowfish salt consists of up to 22 alphanumeric characters (plus '.' and
|
|
|
|
'/'). Blowfish also specifies a number of rounds*, by default 4.
|
2007-01-25 07:40:21 +01:00
|
|
|
|
2016-03-21 15:12:59 +01:00
|
|
|
Blowfish may not always be available, but MD5, SHA256, and SHA512 are
|
|
|
|
guaranteed to be.
|
2007-01-25 07:40:21 +01:00
|
|
|
|
2016-03-21 15:12:59 +01:00
|
|
|
This program should work anywhere Charybdis does; if you find otherwise, file
|
|
|
|
a bug.
|
2007-01-25 07:40:21 +01:00
|
|
|
|
2016-03-21 15:12:59 +01:00
|
|
|
* Blowfish's rounds parameter is a logarithm, not an integer value
|