Skip to content

Commit 4bfc3b9

Browse files
authored
bcrypt: wrong cost flag name (#7168)
1 parent 49dac61 commit 4bfc3b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/caddyhttp/caddyauth/command.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
func init() {
3333
caddycmd.RegisterCommand(caddycmd.Command{
3434
Name: "hash-password",
35-
Usage: "[--plaintext <password>] [--algorithm <name>] [--cost <difficulty>]",
35+
Usage: "[--plaintext <password>] [--algorithm <name>] [--bcrypt-cost <difficulty>]",
3636
Short: "Hashes a password and writes base64",
3737
Long: `
3838
Convenient way to hash a plaintext password. The resulting
@@ -44,7 +44,7 @@ not be echoed.
4444
4545
--algorithm currently only supports 'bcrypt', and is the default.
4646
47-
--cost sets the bcrypt hashing difficulty.
47+
--bcrypt-cost sets the bcrypt hashing difficulty.
4848
Higher values increase security by making the hash computation slower and more CPU-intensive.
4949
If the provided cost is not within the valid range [bcrypt.MinCost, bcrypt.MaxCost],
5050
the default value (defaultBcryptCost) will be used instead.

0 commit comments

Comments
 (0)