mirror of
https://github.com/caddyserver/caddy.git
synced 2025-11-03 16:36:26 +08:00
caddyauth: hash-password: Set bcrypt cost to 14 (#3580)
This commit is contained in:
@ -116,7 +116,7 @@ func cmdHashPassword(fs caddycmd.Flags) (int, error) {
|
|||||||
var hash []byte
|
var hash []byte
|
||||||
switch algorithm {
|
switch algorithm {
|
||||||
case "bcrypt":
|
case "bcrypt":
|
||||||
hash, err = bcrypt.GenerateFromPassword(plaintext, bcrypt.DefaultCost)
|
hash, err = bcrypt.GenerateFromPassword(plaintext, 14)
|
||||||
case "scrypt":
|
case "scrypt":
|
||||||
def := ScryptHash{}
|
def := ScryptHash{}
|
||||||
def.SetDefaults()
|
def.SetDefaults()
|
||||||
|
|||||||
Reference in New Issue
Block a user