Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Argon2 ¶
type Argon2 struct {
// contains filtered or unexported fields
}
func NewHasherArgon2 ¶
func NewHasherArgon2(c Argon2Configuration) *Argon2
type Argon2Configuration ¶
type Argon2Configuration interface {
HasherArgon2() *configuration.HasherArgon2Config
}
type HashProvider ¶
type HashProvider interface {
Hasher() Hasher
}
type Hasher ¶
type Hasher interface { // Compare a password to a hash and return nil if they match or an error otherwise. Compare(password []byte, hash []byte) error // Generate returns a hash derived from the password or an error if the hash method failed. Generate(password []byte) ([]byte, error) }
Hasher provides methods for generating and comparing password hashes.
Click to show internal directories.
Click to hide internal directories.