Documentation
¶
Index ¶
Constants ¶
View Source
const ( MinCost int = 4 MaxCost int = 31 DefaultCost int = 10 )
View Source
const ( ErrHashTooShort Error = "bcrypt: hash too short" ErrMismatchedHashAndPassword Error = "bcrypt: hashedPassword is not the hash of the given password" ErrCostTooLow = "bcrypt: cost %d is below the minimum %d" ErrCostTooHigh = "bcrypt: cost %d is above the maximum %d" ErrHashVersionTooNew = "bcrypt: hash version '%c' is not supported" ErrPasswordTooLong Error = "bcrypt: password exceeds 72 bytes" ErrInvalidHashPrefix = "bcrypt: hash must start with '$', got '%c'" )
Variables ¶
This section is empty.
Functions ¶
func CompareHashAndPassword ¶
CompareHashAndPassword compares a bcrypt hash with a candidate plaintext password.
Types ¶
Click to show internal directories.
Click to hide internal directories.