From 8a0fff58aad1bd754fd4b0b69c675cbba74002ed Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 17 Jul 2020 12:20:41 -0600 Subject: caddyauth: hash-password: Set bcrypt cost to 14 (#3580) --- modules/caddyhttp/caddyauth/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/caddyhttp/caddyauth') diff --git a/modules/caddyhttp/caddyauth/command.go b/modules/caddyhttp/caddyauth/command.go index f3e1809..a0e971e 100644 --- a/modules/caddyhttp/caddyauth/command.go +++ b/modules/caddyhttp/caddyauth/command.go @@ -116,7 +116,7 @@ func cmdHashPassword(fs caddycmd.Flags) (int, error) { var hash []byte switch algorithm { case "bcrypt": - hash, err = bcrypt.GenerateFromPassword(plaintext, bcrypt.DefaultCost) + hash, err = bcrypt.GenerateFromPassword(plaintext, 14) case "scrypt": def := ScryptHash{} def.SetDefaults() -- cgit v1.2.3