Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrUsernameExists bizError = "Username has been used" ErrUsernameOrPasswordIncorrect bizError = "Incorrect username or password" ErrUserNotFound bizError = "user not found" )
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func Encrypt ¶
Encrypt will encrypt a raw string to an encrypted value an encrypted value has an IV (nonce) + actual encrypted value when we decrypt, we only decrypt the latter part
func HashPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.