a2w

package module
v0.0.0-...-4c5b12c Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvalidHash         = errors.New("the encoded hash is not in the correct format")
	IncompatibleVersion = errors.New("incompatible version of argon2")
)
View Source
var Default = &Params{64 * 1024, 3, 2, 16, 32}

Functions

func Hash

func Hash(pwd string) (encodedHash string, err error)

func Verify

func Verify(pwd, encodedHash string) (match bool, err error)

Types

type Params

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

Jump to

Keyboard shortcuts

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