Increase default parameters for Argon2

This commit is contained in:
eikendev 2020-07-31 20:06:36 +02:00
parent 354ce0c08d
commit 7292644fba
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694

View file

@ -6,9 +6,9 @@ import (
// Argon2Config holds the parameters used for creating hashes with Argon2. // Argon2Config holds the parameters used for creating hashes with Argon2.
type Argon2Config struct { type Argon2Config struct {
Memory uint32 `default:"65536"` Memory uint32 `default:"131072"`
Iterations uint32 `default:"1"` Iterations uint32 `default:"4"`
Parallelism uint8 `default:"2"` Parallelism uint8 `default:"4"`
SaltLength uint32 `default:"16"` SaltLength uint32 `default:"16"`
KeyLength uint32 `default:"32"` KeyLength uint32 `default:"32"`
} }