Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BcryptHasher ¶
type BcryptHasher struct{}
BcryptHasher is an implementation of a users Hasher that use Bcrypt.
func (BcryptHasher) Check ¶
func (hasher BcryptHasher) Check(hash, password string) bool
CheckHashPassword compares users hashed password and a raw password and returns if are the same or not.
func (BcryptHasher) Hash ¶
func (hasher BcryptHasher) Hash(password string) string
Hash a password using bcrypt and returns the result.
Click to show internal directories.
Click to hide internal directories.