Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomBytes ¶
GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue. (Taken from https://flaviocopes.com/go-random/)
func GenerateRandomString ¶
GenerateRandomString returns a URL-safe, base64 encoded securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue. (Taken from https://flaviocopes.com/go-random/)
func HashAndSalt ¶
Hash and salt a string (to save in the db)
func IsHashedPasswordEqualWithPlainPassword ¶
Compare the hashed password form the database with the provided
Types ¶
This section is empty.