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 ¶
func ComparePasswordAndHash ¶
func GeneratePasswordHash ¶
Types ¶
type Argon2idHash ¶
type Argon2idHash struct {
// contains filtered or unexported fields
}
func NewArgon2idHash ¶
func NewArgon2idHash(time, saltLen, memory uint32, threads uint8, keyLen uint32) *Argon2idHash
NewArgon2idHash constructor function for Argon2idHash.
func NewDefaultArgon2idHash ¶
func NewDefaultArgon2idHash() *Argon2idHash
Click to show internal directories.
Click to hide internal directories.