Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ErrPasswordNotMatch is returned when the hashed password does not match the plain-text password. ErrPasswordNotMatch = goerror.Error("hashed password does not match plain-text password") )
Variables ¶
This section is empty.
Functions ¶
func HashPasswordString ¶ added in v0.1.0
Types ¶
type Password ¶
type Password struct {
// contains filtered or unexported fields
}
Password is a struct that holds the hashed password.
func FromHash ¶
FromHash creates a Password from a hashed password and its corresponding plain-text password. It returns an error if the hashed password does not match the plain-text password.
func HashPassword ¶
HashPassword returns a new password from plain password text.
Click to show internal directories.
Click to hide internal directories.