crypto

package
v0.0.0-...-28d87ae Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argon2Config

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

func NewDefaultArgon2Config

func NewDefaultArgon2Config() Argon2Config

type Argon2Hasher

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

func NewDefaultArgon2PassHasher

func NewDefaultArgon2PassHasher() Argon2Hasher

func (Argon2Hasher) Hash

func (a Argon2Hasher) Hash(password string) (string, error)

func (Argon2Hasher) Verify

func (a Argon2Hasher) Verify(password, hash string) (bool, error)

Verify checks a candidate password against a known hash using the argon2 hashing algorithm

Jump to

Keyboard shortcuts

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