Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidHash = errors.New("the encoded hash is in an invalid format") ErrIncompatibleVersion = errors.New("the encoded hash is using an incompatible version of Argon2") )
View Source
var DefaultGenerateParams = &GenerateParams{
SaltLength: 32,
Iterations: 4,
Memory: 64 * 1024,
Parallelism: 1,
KeyLength: 32,
}
Functions ¶
func ComparePasswordAndHash ¶
func GenerateFromPassword ¶
func GenerateFromPassword(password string, params *GenerateParams) (string, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.