Documentation ¶
Index ¶
Constants ¶
View Source
const ( MinCost int = 4 MaxCost int = 31 DefaultCost int = 10 )
Variables ¶
View Source
var ErrHashTooShort = errors.New("crypto/bcrypt: hashedSecret too short to be a bcrypted password")
View Source
var ErrMismatchedHashAndPassword = errors.New("crypto/bcrypt: hashedPassword is not the hash of the given password")
Functions ¶
func CompareHashAndPassword ¶
Types ¶
type HashVersionTooNewError ¶
type HashVersionTooNewError byte
func (HashVersionTooNewError) Error ¶
func (hv HashVersionTooNewError) Error() string
type InvalidCostError ¶
type InvalidCostError int
func (InvalidCostError) Error ¶
func (ic InvalidCostError) Error() string
type InvalidHashPrefixError ¶
type InvalidHashPrefixError byte
func (InvalidHashPrefixError) Error ¶
func (ih InvalidHashPrefixError) Error() string
Click to show internal directories.
Click to hide internal directories.