Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustGenerate ¶
Types ¶
type Argon2 ¶
func (Argon2) MustGenerate ¶
type Generator ¶
type Generator interface { MustGenerate(password string) string Generate(password string) (string, error) Compare(hashedPassword, password string) bool }
Generator is an interface that implements the Generate function. This is useful for testing where you can pass this interface instead of a real password generator to mock responses for predictability.
Click to show internal directories.
Click to hide internal directories.