Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrInvalidHash is the error message for invalid hash ErrInvalidHash = errors.New("the encoded hash is not in the correct format") //ErrIncompatibleVersion is the error message for an incompatible version ErrIncompatibleVersion = errors.New("incompatible version of argon2") )
Functions ¶
func ComparePasswordAndHash ¶
ComparePasswordAndHash compare a password and a hash
func GenerateFromPassword ¶
GenerateFromPassword generates a hash from a password
func GenerateRandomBytes ¶
GenerateRandomBytes generates random bytes
Types ¶
Click to show internal directories.
Click to hide internal directories.