Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyExists = errors.New("user already exists")
Functions ¶
func ComparePasswordAndHash ¶
ComparePasswordAndHash verifies password against the PHC-style encoded hash. needsRehash == true if the stored hash uses weaker params than current defaults.
func HashPassword ¶
HashPassword returns a PHC-style encoded argon2id string to store in DB.
Types ¶
Click to show internal directories.
Click to hide internal directories.