Versions in this module Expand all Collapse all v0 v0.1.0 Apr 17, 2025 v0.0.2 Mar 27, 2025 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