hasher

package
v0.0.0-...-adacb7d Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argon2ID

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

func NewArgon2ID

func NewArgon2ID() *Argon2ID

func (*Argon2ID) Equal

func (h *Argon2ID) Equal(v string, hsh string) (match bool, err error)

func (*Argon2ID) Generate

func (h *Argon2ID) Generate(v string) (hsh string, err error)

type Hasher

type Hasher interface {
	Generate(v string) (hsh string, err error)
	Equal(v string, hsh string) (match bool, err error)
}

Jump to

Keyboard shortcuts

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