mirror of
https://github.com/pushbits/server.git
synced 2025-06-12 23:52:05 +02:00
Increase default parameters for Argon2
This commit is contained in:
parent
354ce0c08d
commit
7292644fba
1 changed files with 3 additions and 3 deletions
|
@ -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"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue