summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/caddyauth
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-07-17 12:20:41 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-07-17 12:20:53 -0600
commit8a0fff58aad1bd754fd4b0b69c675cbba74002ed (patch)
treeb63aa0e3e895f9a010b8fd4a485e8c6b060cf00b /modules/caddyhttp/caddyauth
parent6f0f159ba56adeb6e2cbbb408651419b87f20856 (diff)
caddyauth: hash-password: Set bcrypt cost to 14 (#3580)
Diffstat (limited to 'modules/caddyhttp/caddyauth')
-rw-r--r--modules/caddyhttp/caddyauth/command.go2
1 files changed, 1 insertions, 1 deletions
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()