diff options
author | Stefan Fritsch <sf@apache.org> | 2012-10-07 11:06:10 +0200 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2012-10-07 11:06:10 +0200 |
commit | c2eb43db553701ec12e693d13bca8c7bca113061 (patch) | |
tree | ac64181b7412122b2d499d745c0d872d40764019 /support/htdbm.c | |
parent | Add passwd_common.c build support for Windows and Netware (diff) | |
download | apache2-c2eb43db553701ec12e693d13bca8c7bca113061.tar.xz apache2-c2eb43db553701ec12e693d13bca8c7bca113061.zip |
add support for bcrypt
PR: 49288
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1395255 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/htdbm.c')
-rw-r--r-- | support/htdbm.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/support/htdbm.c b/support/htdbm.c index 95b29ee0cf..c208b8428a 100644 --- a/support/htdbm.c +++ b/support/htdbm.c @@ -276,29 +276,33 @@ static void htdbm_usage(void) { fprintf(stderr, "htdbm -- program for manipulating DBM password databases.\n\n" - "Usage: htdbm [-cmdpstvx] [-TDBTYPE] database username\n" - " -b[cmdptsv] [-TDBTYPE] database username password\n" - " -n[mdpst] username\n" - " -nb[mdpst] username password\n" - " -v[mdps] [-TDBTYPE] database username\n" - " -vb[mdps] [-TDBTYPE] database username password\n" - " -x [-TDBTYPE] database username\n" - " -l [-TDBTYPE] database\n" + "Usage: htdbm [-cmBdpstvx] [-Ccost] [-TDBTYPE] database username\n" + " -b[cmBdptsv] [-Ccost] [-TDBTYPE] database username password\n" + " -n[mBdpst] [-Ccost] username\n" + " -nb[mBdpst] [-Ccost] username password\n" + " -v[mBdps] [-Ccost] [-TDBTYPE] database username\n" + " -vb[mBdps] [-Ccost] [-TDBTYPE] database username password\n" + " -x [-Ccost] [-TDBTYPE] database username\n" + " -l [-Ccost] [-TDBTYPE] database\n" "Options:\n" " -b Use the password from the command line rather than prompting for it.\n" " -c Create a new database.\n" " -n Don't update database; display results on stdout.\n" " -m Force MD5 encryption of the password (default).\n" + " -B Force BCRYPT encryption of the password (very secure).\n" " -d Force CRYPT encryption of the password (8 chars max, insecure).\n" " -p Do not encrypt the password (plaintext).\n" " -s Force SHA encryption of the password (insecure).\n" + " -C Set the computing time used for the bcrypt algorithm.\n" + " (higher is more secure but slower, default: %d, valid: 4 to 31)\n" " -T DBM Type (SDBM|GDBM|DB|default).\n" " -l Display usernames from database on stdout.\n" " -t The last param is username comment.\n" " -v Verify the username/password.\n" " -x Remove the username record from database.\n" "The SHA algorithm does not use a salt and is less secure than the " - "MD5 algorithm.\n"); + "MD5 algorithm.\n", + BCRYPT_DEFAULT_COST); exit(ERR_SYNTAX); } |