argon2

package
v0.0.0-...-2f21ade Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Time    = 3
	Memory  = 32 * 1024
	Threads = 4
	KeyLen  = 32
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Argon2

type Argon2 struct {
}

func (*Argon2) CompareSalted

func (h *Argon2) CompareSalted(passwordHash, password, salt []byte) error

func (*Argon2) HashWithSalt

func (h *Argon2) HashWithSalt(password, salt []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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