Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidHash = errors.New("invalid hash format") ErrIncompatibleVersion = errors.New("incompatible version of argon2") )
Functions ¶
func ComparePasswordAndHash ¶
func GenerateRandomBytes ¶
func GenerateRandomString ¶
func HashPassword ¶
HashPassword hashes a password using Argon2id using the following parameters: - memory: 46 MiB - threads: 2 - time: 2 iterations - keyLength: 32 bytes - saltLength: 16 bytes The resulting hash is encoded in a format compatible with the Argon2 specification.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.