Versions in this module Expand all Collapse all v1 v1.0.1 May 19, 2021 Changes in this version + var ErrIncompatibleVersion = errors.New("argon2: version is not compatible") + var ErrInvalidHash = errors.New("argon2: encoded hash has invalid format") + var ErrMismatchedHashAndPassword = errors.New("argon2: encoded is not the hash of the given password") + func CompareHashAndPassword(encoded []byte, password []byte) error + func GenerateFromPassword(password []byte) ([]byte, error) + func GenerateFromPasswordWithParams(password []byte, params IDParams) ([]byte, error) + func GenerateFromPasswordWithParamsAndSalt(password []byte, params IDParams, salt []byte) ([]byte, error) + func GenerateRandomBytes(size uint32) ([]byte, error) + type IDParams struct + Iterations uint32 + KeyLength uint32 + Memory uint32 + Parallelism uint8 + SaltLength uint32 + var DefaultParams IDParams Other modules containing this package github.com/aybaze/go-httputil/v2