Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrHashFailed - signaling a hashing failure ErrHashFailed = errors.New("crypto: hash failed") )
Functions ¶
func GenerateRandomKey ¶
GenerateRandomKey - wraps gorilla/securecookie's GenerateRandomKey
func Hash ¶
Hash - generates the Argon2i hash of a given password returns the hash and the salt that was used to create the hash these values are base64 encoded
func VerifyHash ¶
VerifyHash - takes a password, a base64 encoded hash, and a base64 encoded salt returns true if the password matches the hash
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.