Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidHash = errors.New("The format of the encoded hash is invalid") ErrIncompatibleVersion = errors.New("Incompatible version of argon2") )
Based on recommendations for backend authentication from the Argon2 draft RFC revision 12
Functions ¶
func GenRandomBytes ¶
Generate n crypto-safe random bytes
func HashMsgCompare ¶
checks if a given message matches the hash. Comparison is done in constant time to avoid timing attacks
func HashPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.