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 PasswordHash ¶
type PasswordHash struct {
// contains filtered or unexported fields
}
func NewHPasswordHash ¶
func NewHPasswordHash() *PasswordHash
func (*PasswordHash) ComparePasswordAndHash ¶
func (h *PasswordHash) ComparePasswordAndHash(password, encodedHash string) (match bool, err error)
func (*PasswordHash) GenerateFromPassword ¶
func (h *PasswordHash) GenerateFromPassword(password string) (encodedHash string, err error)
Click to show internal directories.
Click to hide internal directories.