hasher

package
v0.0.0-...-d7e6830 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Time    uint32
	Memory  uint32
	Threads uint8
	KeyLen  uint32
}

type Hasher

type Hasher struct {
	Config Config
}

func NewHasher

func NewHasher() *Hasher

func (*Hasher) Compare

func (h *Hasher) Compare(data, encodedHash string) (bool, error)

func (*Hasher) Hash

func (h *Hasher) Hash(data string) (string, error)

Jump to

Keyboard shortcuts

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