bcrypt: wrong cost flag name (#7168)
This commit is contained in:
parent
49dac61b07
commit
4bfc3b95b5
1 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ import (
|
||||||
func init() {
|
func init() {
|
||||||
caddycmd.RegisterCommand(caddycmd.Command{
|
caddycmd.RegisterCommand(caddycmd.Command{
|
||||||
Name: "hash-password",
|
Name: "hash-password",
|
||||||
Usage: "[--plaintext <password>] [--algorithm <name>] [--cost <difficulty>]",
|
Usage: "[--plaintext <password>] [--algorithm <name>] [--bcrypt-cost <difficulty>]",
|
||||||
Short: "Hashes a password and writes base64",
|
Short: "Hashes a password and writes base64",
|
||||||
Long: `
|
Long: `
|
||||||
Convenient way to hash a plaintext password. The resulting
|
Convenient way to hash a plaintext password. The resulting
|
||||||
|
|
@ -44,7 +44,7 @@ not be echoed.
|
||||||
|
|
||||||
--algorithm currently only supports 'bcrypt', and is the default.
|
--algorithm currently only supports 'bcrypt', and is the default.
|
||||||
|
|
||||||
--cost sets the bcrypt hashing difficulty.
|
--bcrypt-cost sets the bcrypt hashing difficulty.
|
||||||
Higher values increase security by making the hash computation slower and more CPU-intensive.
|
Higher values increase security by making the hash computation slower and more CPU-intensive.
|
||||||
If the provided cost is not within the valid range [bcrypt.MinCost, bcrypt.MaxCost],
|
If the provided cost is not within the valid range [bcrypt.MinCost, bcrypt.MaxCost],
|
||||||
the default value (defaultBcryptCost) will be used instead.
|
the default value (defaultBcryptCost) will be used instead.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue