Documentation ¶
Index ¶
Constants ¶
View Source
const VariableArgon2RequiredMemory uint64 = 64 * 1024
VariableArgon2RequiredMemory defines the recommended memory in bytes to use to generate an Argon2id hashed password
View Source
const VariableMemoryTolerance float64 = 0.5
VariableMemoryTolerance defines the maximum amount of the available heap to use for hashing passwords
Variables ¶
This section is empty.
Functions ¶
func GenerateArgon2idHash ¶
GenerateArgon2idHash returns the hash of the plaintext string using Argon2
func GenerateRandomBytes ¶
GenerateRandomBytes returns a slice of randomly generated bytes
func HashPlaintext ¶
HashPlaintext hashes and salts the given plaintext string and returns the result as a base64-encoded hash and salt
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.