# Functions
ConfigHashAlgorithm will try to find a "recommended algorithm name" defined by RecommendedHashAlgorithms for config This function is not fast and is only used for the installation page.
MustRegister registers a PasswordSaltHasher with the availableHasherFactories Caution: This is not thread safe.
NewArgon2Hasher is a factory method to create an Argon2Hasher The provided config should be either empty or of the form: "<time>$<memory>$<threads>$<keyLen>", where <x> is the string representation of an integer.
NewBcryptHasher is a factory method to create an BcryptHasher The provided config should be either empty or the string representation of the "<cost>" as an integer.
NewDummyHasher is a factory method to create a DummyHasher Any provided configuration is ignored.
NewPBKDF2Hasher is a factory method to create an PBKDF2Hasher config should be either empty or of the form: "<iter>$<keyLen>", where <x> is the string representation of an integer.
NewScryptHasher is a factory method to create an ScryptHasher The provided config should be either empty or of the form: "<n>$<r>$<p>$<keyLen>", where <x> is the string representation of an integer.
Parse will convert the provided algorithm specification in to a PasswordHashAlgorithm If the provided specification matches the DefaultHashAlgorithm Specification it will be used.
Register registers a PasswordSaltHasher with the availableHasherFactories Caution: This is not thread safe.
SetDefaultPasswordHashAlgorithm will take a provided algorithmName and de-alias it to a complete algorithm specification.
# Constants
DefaultHashAlgorithmName represents the default value of PASSWORD_HASH_ALGO configured in app.ini.
# Structs
Argon2Hasher implements PasswordHasher and uses the Argon2 key derivation function, hybrant variant.
BcryptHasher implements PasswordHasher and uses the bcrypt password hash function.
DummyHasher implements PasswordHasher and is a dummy hasher that simply puts the password in place with its salt This SHOULD NOT be used in production and is provided to make the integration tests faster only.
PasswordHashAlgorithms are named PasswordSaltHashers with a default verifier and hash function.
PBKDF2Hasher implements PasswordHasher and uses the PBKDF2 key derivation function.
ScryptHasher implements PasswordHasher and uses the scrypt key derivation function.
# Interfaces
PasswordHasher will hash a provided password with the salt.
PasswordSaltHasher will hash a provided password with the provided saltBytes.
PasswordVerifier will ensure that a providedPassword matches the hashPassword when hashed with the salt.