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

This commit is contained in:
Matthew Holt 2020-07-17 12:20:41 -06:00
parent 6f0f159ba5
commit 8a0fff58aa
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5

View File

@ -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()