Documentation ¶
Overview ¶
Package argon2id provides functions to deal with argon2id password protection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CompareHashAndPassword ¶
CompareHashAndPassword compares a argon2id hashed password with its possible plaintext equivalent. Returns nil on success, or an error on failure.
func GenerateFromPassword ¶
GenerateFromPassword generates the string representation of argon2id from the given password and parameters. Returns the string representation with nil error when successful. On failure, it returns empty string with non-nil error.
Types ¶
Click to show internal directories.
Click to hide internal directories.