Versions in this module Expand all Collapse all v1 v1.11.13-rc.2 Dec 4, 2024 v1.0.0 Dec 4, 2024 Changes in this version + const Fair + const OK + const Strong + const VeryStrong + const VeryWeak + const Weak + var ErrEmptyPassword = errors.New("empty password") + var ErrPassMaxLength = fmt.Errorf("password exceeds maximum length of %d chars", maxPassLen) + var ErrWeakPassword = errors.New("password is too weak") + func IsValid(password string, minimumStrength Strength) error + func SufficientlyStrong(password string, minimumStrength Strength) bool + type Hash struct + Password [32]byte + Salt [16]byte + func (h *Hash) Check(password string) bool + func (h *Hash) Set(password string) error + type Strength int