Versions in this module Expand all Collapse all v0 v0.0.3 Mar 23, 2021 v0.0.2 Mar 23, 2021 Changes in this version + var ErrIncompatibleVersion = errors.New("incompatible version of argon2") + var ErrInvalidHash = errors.New("the encoded hash is not in the correct format") + func ComparePasswordAndHash(password, encodedHash string) (match bool, err error) + func GenerateFromPassword(password string) (encodedHash string, err error) + func GenerateRandomBytes(n uint32) ([]byte, error) + type Params struct + Iterations uint32 + KeyLength uint32 + Memory uint32 + Parallelism uint8 + SaltLength uint32 + func DecodeHash(encodedHash string) (p *Params, salt, hash []byte, err error)