Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidHash = errors.New("argon2id: the encoded hash is not in the correct format") ErrIncompatibleVariant = errors.New("argon2id: incompatible algorithm variant") ErrIncompatibleVersion = errors.New("argon2id: incompatible version of argon2") )
View Source
var DefaultParams = &Params{
Memory: 32 * 1024,
Iterations: 2,
Parallelism: 2,
SaltLength: 16,
KeyLength: 32,
}
Functions ¶
func ComparePasswordAndHash ¶
ComparePasswordAndHash performs a constant-time comparison between a plain-text password and Argon2id hash
Types ¶
Click to show internal directories.
Click to hide internal directories.