Documentation ¶
Index ¶
- func DiffFilenames(filenameA, filenameB string) (int, error)
- type FuzzyReader
- type Tlsh
- func HashBytes(blob []byte) (tlsh *Tlsh, err error)
- func HashFilename(filename string) (tlsh *Tlsh, err error)
- func HashReader(r FuzzyReader) (tlsh *Tlsh, err error)
- func New(checksum, lValue, q1Ratio, q2Ratio, qRatio byte, code [codeSize]byte) *Tlsh
- func ParseStringToTlsh(hashString string) (*Tlsh, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffFilenames ¶ added in v0.2.0
DiffFilenames calculate distance between two files
Types ¶
type FuzzyReader ¶ added in v0.2.0
type FuzzyReader interface { io.Reader io.ByteReader }
FuzzyReader interface
type Tlsh ¶ added in v0.2.0
type Tlsh struct {
// contains filtered or unexported fields
}
Tlsh holds hash components
func HashFilename ¶ added in v0.2.0
HashFilename calculates the TLSH for the input file
func HashReader ¶
func HashReader(r FuzzyReader) (tlsh *Tlsh, err error)
HashReader calculates the TLSH for the input reader
func ParseStringToTlsh ¶ added in v0.3.1
Parsing the hash of the string type
Click to show internal directories.
Click to hide internal directories.