Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashPassword ¶
HashPassword hashes a password with bcrypt. cost is in interval [bcrypt.MinCost, bcrypt.MaxCost], i.e. [4, 31]. Use bcrypt.DefaultCost, or 10, if unsure.
func IsPassword ¶
IsPassword returns whether password is the plaintext equivalent of hash.
Types ¶
Click to show internal directories.
Click to hide internal directories.