argon2

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultParams = &Params{
	memory:      128 * 1024,
	iterations:  4,
	parallelism: 4,
	saltLength:  16,
	keyLength:   32,
}

Functions

func Hash

func Hash(password string, p *Params) (encodedHash string, err error)

func Verify

func Verify(password string, encodedHash string) (bool, 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