auth

package
v0.0.0-...-b4aa546 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

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")

	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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL