Versions in this module Expand all Collapse all v0 v0.5.1 May 9, 2022 v0.5.0 Apr 21, 2021 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 Base64Decode(src []byte) ([]byte, error) + func Base64Encode(src []byte) []byte + func CompareHashAndPassword(hashedPassword, password []byte) error + func Cost(hashedPassword []byte) (int, error) + func GenerateFromPassword(password []byte, cost int) ([]byte, error) + func GenerateFromPasswordAndSalt(password []byte, cost int, salt []byte) ([]byte, error) + func Salt(hashedPassword []byte) ([]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