Versions in this module Expand all Collapse all v0 v0.0.25 Aug 22, 2026 v0.0.24 Aug 22, 2026 Changes in this version + const DefaultCost + const ErrCostTooHigh + const ErrCostTooLow + const ErrHashTooShort + const ErrHashVersionTooNew + const ErrInvalidHashPrefix + const ErrMismatchedHashAndPassword + const ErrPasswordTooLong + const MaxCost + const MinCost + func CompareHashAndPassword(hashedPassword, password []byte) error + func Cost(hashedPassword []byte) (int, error) + func GenerateFromPassword(password []byte, cost int) ([]byte, error) + type Error string + func (e Error) Error() string