Matthew Holt
5 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
1 additions and
1 deletions
-
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() |
|
|
|