@marcel91200 / caddy Mirror · read-only / commits / 8a0fff58
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

caddyauth: hash-password: Set bcrypt cost to 14 (#3580)

Matthew Holt committed Jul 17, 2020 at 12:20 UTC 8a0fff58aad1bd754fd4b0b69c675cbba74002ed
1 file changed +1 -1
modules/caddyhttp/caddyauth/command.go
+1 -1
@@ -116,7 +116,7 @@ func cmdHashPassword(fs caddycmd.Flags) (int, error) {
116 var hash []byte
117 switch algorithm {
118 case "bcrypt":
119 - hash, err = bcrypt.GenerateFromPassword(plaintext, bcrypt.DefaultCost)
119 + hash, err = bcrypt.GenerateFromPassword(plaintext, 14)
120 case "scrypt":
121 def := ScryptHash{}
122 def.SetDefaults()