Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthToken ¶
func NewAuthToken() string
Public: Returns a new pseudo-random authentication token as a string.
func PasswordMatch ¶
Public: check if the given password matches with the given hash. Returns true if the hashed version and the password match, false otherwise.
func PasswordSalt ¶
Public: generate a salt for the given password. Returns a string containing the salted version of the given password.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.