Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
CheckPasswordHash compares a bcrypt hashed password with its possible plaintext equivalent. Returns nil on success, or an error on failure.
func HashPassword ¶
HashPassword returns bcrypt hash of the password or error if password hash goes wrong. Use CheckPasswordHash, as defined in this package, to compare the returned hashed password with its cleartext version.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.