package
0.36.0
Repository: https://go.googlesource.com/crypto
Documentation: pkg.go.dev

# Functions

CompareHashAndPassword compares a bcrypt hashed password with its possible plaintext equivalent.
Cost returns the hashing cost used to create the given hashed password.
GenerateFromPassword returns the bcrypt hash of the password at the given cost.

# Constants

the cost that will actually be set if a cost below MinCost is passed into GenerateFromPassword.
the maximum allowable cost as passed in to GenerateFromPassword.
the minimum allowable cost as passed in to GenerateFromPassword.

# Variables

The error returned from CompareHashAndPassword when a hash is too short to be a bcrypt hash.
The error returned from CompareHashAndPassword when a password and hash do not match.
ErrPasswordTooLong is returned when the password passed to GenerateFromPassword is too long (i.e.

# 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 '$'.