hashvalue_replacer

package module
v0.0.0-...-da29dad Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorInvalidLengths = errors.New("invalid window lengths")

Functions

func NewReader

func NewReader(rd io.ReadCloser, salt []byte, hashes [][]byte, lengths []int, opts Options) (io.ReadCloser, error)

func ValuesToArgs

func ValuesToArgs(hashFn HashAlgorithm, salt []byte, values []string) (hashes [][]byte, lengths []int)

Types

type HashAlgorithm

type HashAlgorithm func(salt []byte, data []byte) []byte

type Options

type Options struct {
	Hash       HashAlgorithm
	Mask       string
	NumWorkers int
}

type Reader

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

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) Read

func (r *Reader) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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