Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashPassword ¶
Create a random salt, and return fully baked hash, of length hashLenV1
func HashPasswordBase64 ¶
Return base64 encoding of HashPassword
func HashSessionToken ¶
Hash the session token to safeguard against timing attacks (eg in the DB's BTree lookup) The caller gets the plaintext value, and that is the ONLY place where the plaintext lives.
func HashSessionTokenBase64 ¶
Return the base64 encoding of the hash of the session token
func VerifyHash ¶
Returns true if a plaintext password matches a stored hash
func VerifyHashBase64 ¶
Returns true if a plaintext password matches a stored hash, in base64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.