Skip to content

Commit

Permalink
caddyauth: hash-password: Set bcrypt cost to 14 (#3580)
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed Jul 17, 2020
1 parent 6f0f159 commit 8a0fff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/caddyhttp/caddyauth/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8a0fff5

Please sign in to comment.