Versions in this module Expand all Collapse all v0 v0.1.0 Feb 10, 2014 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