argon2

package
v0.0.0-...-da6aac2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.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")
)

Functions

This section is empty.

Types

type Argon2

type Argon2 struct {
	// contains filtered or unexported fields
}

func New

func New(memory, iterations, keyLength, saltLength uint32, parallelism uint8) *Argon2

func (*Argon2) CompareHashPassword

func (a *Argon2) CompareHashPassword(password, encodedHash string) (match bool, err error)

func (*Argon2) GenerateHashPassword

func (a *Argon2) GenerateHashPassword(password string) (encodedHash string, err error)

Jump to

Keyboard shortcuts

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