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.
Click to show internal directories.
Click to hide internal directories.