Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BCryptCost = bcrypt.DefaultCost
BCryptCost is the cost factor used for generating bcrypted passwords
Functions ¶
func CompareHashAndPassword ¶
CompareHashAndPassword compares a password to a bcrypted hash of the password
func GenerateRandomKey ¶
GenerateRandomKey generates a random key of length strength
func GenerateRandomURLSafeKey ¶
GenerateRandomURLSafeKey generates a random key of length strength and returns the base64 encoded string
func HashPassword ¶
HashPassword bcrypts a password using bcrypt.DefaultCost as the cost factor
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.