Versions in this module Expand all Collapse all v1 v1.0.0 Jun 18, 2018 Changes in this version + const DefaultCost + const MaxCost + const MinCost + var ErrHashTooShort = errors.New("crypto/bcrypt: hashedSecret too short to be a bcrypted password") + var ErrMismatchedHashAndPassword = errors.New("crypto/bcrypt: hashedPassword is not the hash of the given password") + func CompareHashAndPassword(hashedPassword, password []byte) error + func Cost(hashedPassword []byte) (int, error) + func GenerateFromPassword(password []byte, cost int) ([]byte, error) + type HashVersionTooNewError byte + func (hv HashVersionTooNewError) Error() string + type InvalidCostError int + func (ic InvalidCostError) Error() string + type InvalidHashPrefixError byte + func (ih InvalidHashPrefixError) Error() string Incompatible versions in this module v2.0.0+incompatible Mar 4, 2019