Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bcrypt ¶
type Bcrypt struct{}
Bcrypt implements the PasswordHasher interface using bcrypt
type Mock ¶
type Mock struct{}
Mock implements the PasswordHasher interface using bcrypt
type PasswordHasher ¶
type PasswordHasher interface { // Hash must salt and hash the given password returning the resulting hash Hash(password []byte) ([]byte, error) // Compare must return true if the given password corresponds to // the given hash, otherwise must return false Compare(password, hash []byte) bool }
PasswordHasher defines the interface of a password hasher
Click to show internal directories.
Click to hide internal directories.