Documentation ¶
Overview ¶
Package utils is a collection of helpful utilities for common actions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
CheckPassword compares a bcrypt hashed password with its possible plaintext equivalent. Returns nil on success, or an error on failure.
func GeneratePassword ¶
GeneratePassword returns the bcrypt hash string of the given password at the configured cost.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.