hashfinder

package
v0.0.0-...-25257fa Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package hashfinder provides a class for searching hashes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashFinder

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

A HashFinder contains a list of hashes to search for, and can search all of them at once.

func New

func New(tolerance int, hashAlgs ...func() hash.Hash) HashFinder

New creates a new HashFinder with the given tolerance, supporting the given algorithms.

func (*HashFinder) AddTarget

func (hf *HashFinder) AddTarget(data []byte)

AddTarget adds a target hash to the HashFinder.

func (*HashFinder) Check

func (hf *HashFinder) Check(data []byte) string

Check checks to see if the given data matches any of the hashes this HashFinder is looking for.

Jump to

Keyboard shortcuts

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