Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidHash = errors.New("the encoded hash is not in the correct format") ErrIncompatibleVersion = errors.New("incompatible version of argon2") )
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { GenerateHashFromPassword(password string) (string, error) ComparePasswordAndHash(password, hash string) (bool, error) AlgorithmName() string GenerateSecureRandomBytes(length int) ([]byte, error) GenerateSecureRandomString(length int) (string, error) }
func NewProvider ¶
func NewProvider() Provider
Click to show internal directories.
Click to hide internal directories.