Documentation
ยถ
Index ยถ
Constants ยถ
This section is empty.
Variables ยถ
View Source
var DefaultConfig = Config{ Algorithm: Argon2id, Memory: 64 * 1024, Time: 3, Threads: 4, Cost: bcrypt.DefaultCost, }
provides the default configuration for hashing
View Source
var ParanoidConfig = Config{ Algorithm: Argon2id, Memory: 192 * 1024, Time: 12, Threads: 8, Cost: bcrypt.MaxCost, }
provides the paranoid configuration for hashing.
Functions ยถ
Types ยถ
type Config ยถ
type Config struct { Algorithm Algorithm // hashing algorithm (Argon2, Bcrypt) Memory uint32 // Argon2 memory Time uint32 // Argon2 timer Threads uint8 // Argon2 parallelism Cost int // Bcrypt cost RandSrc io.Reader // random number generator }
stores configuration parameters for password hashing.
Click to show internal directories.
Click to hide internal directories.