# Functions
Base64Decode is the base64 decoder for bcrypt.
Base64Encode is the base64 encoder for bcrypt.
CompareHashAndPassword compares a bcrypt hashed password with its possible plaintext equivalent.
Cost returns the hashing cost used to create the given hashed password.
DecodeSecret decodes a valid bcrypt secret into a salt and key.
GenerateFromPassword returns the bcrypt hash of the password at the given cost.
GenerateFromPasswordSalt returns the bcrypt hash of the password at the given cost.
Key returns a new key from password/salt combination.
NewSalt generates a salt with an appropriate length.
# Constants
the cost that will actually be set if a cost below MinCost is passed into GenerateFromPassword.
No description provided by the author
No description provided by the author
the maximum allowable cost as passed in to GenerateFromPassword.
the minimum allowable cost as passed in to GenerateFromPassword.
# Variables
ErrHashTooShort is the error returned from CompareHashAndPassword when a hash is too short to be a bcrypt hash.
ErrMismatchedHashAndPassword is the error returned from CompareHashAndPassword when a password and hash do not match.
ErrSecretInvalidLength is the error returned when a hash secret is too short to be a bcrypt secret.
# Structs
No description provided by the author
# Type aliases
The error returned from CompareHashAndPassword when a hash was created with a bcrypt algorithm newer than this implementation.
No description provided by the author
The error returned from CompareHashAndPassword when a hash starts with something other than '$'.