Documentation ¶ Index ¶ Variables func CompareDataAndHash(data []byte, encodedHash string) (match bool, err error) func GenerateEncodedHash(data []byte, p *Params) (encodedHash string, err error) type Params func DecodeHash(encodedHash string) (p *Params, salt, hash []byte, err error) 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") DefaultParams = Params{ // contains filtered or unexported fields } ) Functions ¶ func CompareDataAndHash ¶ func CompareDataAndHash(data []byte, encodedHash string) (match bool, err error) func GenerateEncodedHash ¶ func GenerateEncodedHash(data []byte, p *Params) (encodedHash string, err error) Types ¶ type Params ¶ type Params struct { // contains filtered or unexported fields } func DecodeHash ¶ func DecodeHash(encodedHash string) (p *Params, salt, hash []byte, err error) Source Files ¶ View all Source files auth.go Click to show internal directories. Click to hide internal directories.