Versions in this module Expand all Collapse all v0 v0.5.0 May 26, 2026 Changes in this version + const DefaultPostgresIterations + const DefaultSaltLength + var ErrInvalidIterations = errors.New("iteration count must be a positive integer") + var ErrInvalidServerKey = errors.New("server key must decode to 32 bytes") + var ErrInvalidStoredKey = errors.New("stored key must decode to 32 bytes") + var ErrWrongComponents = errors.New(...) + var ErrWrongHashConfig = errors.New("wrong hash config (expected '<iterations>:<salt>' in the first '$' section)") + var ErrWrongHashType = errors.New("wrong hash type (expected SCRAM-SHA-256)") + var ErrWrongKeyComponents = errors.New(...) + func Verify(hash string, plainText string) (bool, error) + type GenerateOptions struct + Iterations int + PlainText string + Salt []byte + func (options *GenerateOptions) Generate() (string, error)