ssdeep

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: BSD-3-Clause, MIT Imports: 6 Imported by: 1

README

Build Status Coverage Status Go Report Card GoDoc

SSDEEP

Golang implementation based on the paper and implementation by Jesse Kornblum.

See the example in the app directory for the usage.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Distance

func Distance(hash1, hash2 *FuzzyHash) (score int)

Distance between two strings

func GetFileSize

func GetFileSize(f *os.File) (int, error)

GetFileSize returns the files size

Types

type FuzzyHash

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

FuzzyHash struct for comparison

func (FuzzyHash) String

func (h FuzzyHash) String() string

type SSDEEP

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

SSDEEP state struct

func NewSSDEEP

func NewSSDEEP() SSDEEP

NewSSDEEP creates a new SSDEEP hash

func (*SSDEEP) FuzzyByte

func (sdeep *SSDEEP) FuzzyByte(blob []byte) (*FuzzyHash, error)

FuzzyByte hash of a provided byte array

func (*SSDEEP) FuzzyFile

func (sdeep *SSDEEP) FuzzyFile(f *os.File, fileLocation string) (*FuzzyHash, error)

FuzzyFile hash of a provided reader

func (*SSDEEP) FuzzyReader

func (sdeep *SSDEEP) FuzzyReader(f fuzzyReader, fileLocation string) (*FuzzyHash, error)

FuzzyReader hash of a provided reader

func (*SSDEEP) GetBlockSize

func (sdeep *SSDEEP) GetBlockSize(n int)

GetBlockSize calculates the block size based on file size

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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