Versions in this module Expand all Collapse all v1 v1.24.5 Aug 14, 2025 Changes in this version + var ErrComplexity = errors.New("password not complex enough") + var ErrIsPwned = errors.New("password has been pwned") + var ErrMinLength = errors.New("password not long enough") + func BuildComplexityError(locale translation.Locale) template.HTML + func Generate(n int) (string, error) + func IsComplexEnough(pwd string) bool + func IsErrIsPwnedRequest(err error) bool + func IsPwned(ctx context.Context, password string) error + func NewComplexity() + type ErrIsPwnedRequest struct + func (err ErrIsPwnedRequest) Error() string + func (err ErrIsPwnedRequest) Unwrap() error