Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BCrypt ¶
type BCrypt struct {
// contains filtered or unexported fields
}
BCrypt is a Hasher that use the bcrypt algorithm
type Hasher ¶
type Hasher interface { // Hash returns the hash of its argument Hash(b []byte) ([]byte, error) // Compare compares the hashed password with a plaintext password // It returns true in case of successfull comparation, false otherwise Compare(hash, b []byte) bool }
Hasher can generates hashes from plaintext password and compare hashes with plaintext passwords
Click to show internal directories.
Click to hide internal directories.