Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hasher ¶
type Hasher interface { // Make a hash value from the given value. Make(value string) (string, error) // MustMake a hash value from the given value. // If an error occurs, it will panic. MustMake(value string) string // Check the given value matches the given hashed value. // If Make() is error, it will return false. Check(value, hashedValue string) bool }
var Bcrypt Hasher = &bcryptHasher{}
var Md5 Hasher = &md5Hasher{}
var Sha1 Hasher = &sha1Hasher{}
Click to show internal directories.
Click to hide internal directories.