algorithm

package
v0.0.0-...-11fa6ca Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT 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 ArgonHashing

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

func Argon2

func Argon2(memory, iterations, keyLen, saltLen uint32, parallelism uint8) *ArgonHashing

func (*ArgonHashing) Compare

func (p *ArgonHashing) Compare(password, encodedHash string) (match bool, err error)

func (*ArgonHashing) Generate

func (p *ArgonHashing) Generate(str string) (encodedHash string, err error)

Jump to

Keyboard shortcuts

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