hasher

package
v1.8.94 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MinLength = 30
	Salt      = "this is my salt"
)

Functions

This section is empty.

Types

type Hasher

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

func NewHasher

func NewHasher(
	salt string,
	minLength int,
) Hasher

func (*Hasher) DecodeHash

func (h *Hasher) DecodeHash(hash string) ([]int, error)

func (*Hasher) Hash

func (h *Hasher) Hash(vals []int) (string, error)

Jump to

Keyboard shortcuts

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