Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidHashFormat = errors.New("invalid hash format") ErrArgon2VersionIncompatible = errors.New("argon2 version incompatible") )
View Source
var DefaultArgon2id = Argon2idHash{ // contains filtered or unexported fields }
Functions ¶
Types ¶
type Argon2idHash ¶
type Argon2idHash struct {
// contains filtered or unexported fields
}
func NewArgon2idHash ¶
func NewArgon2idHash(time, memory uint32, threads uint8, keyLen, saltLen uint32) *Argon2idHash
func NewDefaultArgon2idHash ¶
func NewDefaultArgon2idHash() *Argon2idHash
func (*Argon2idHash) HashPassword ¶
func (a *Argon2idHash) HashPassword(password string, salt []byte) (string, error)
HashPassword generates a hash of the password using Argon2id.
Click to show internal directories.
Click to hide internal directories.