processor

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MIT, Unlicense Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UiBarMax = 1024 // 1024 should be dividable by most things
)

Variables

View Source
var AuditFile = ""

AuditFile sets the file that we want to audit against similar to hashdeep

View Source
var Debug = false

Debug enables debug logging output

View Source
var DirFilePaths = []string{}

DirFilePaths is not set via flags but by arguments following the flags for file or directory to process

View Source
var FileAudit = false

If set will enable the internal file audit logic to kick in

View Source
var FileListQueueSize = 1000

FileListQueueSize is the queue of files found and ready to be processed

View Source
var FileOutput = ""

FileOutput sets the file that output should be written to

View Source
var Format = ""

Format sets the output format of the formatter

View Source
var Hash = []string{}

List of hashes that we want to process

View Source
var HashNames = Result{
	MD4:        "md4",
	MD5:        "md5",
	SHA1:       "sha1",
	SHA256:     "sha256",
	SHA512:     "sha512",
	Blake2b256: "blake2b256",
	Blake2b512: "blake2b512",
	Blake3:     "blake3",
	Sha3224:    "sha3224",
	Sha3256:    "sha3256",
	Sha3384:    "sha3384",
	Sha3512:    "sha3512",
}

String mapping for hash names

View Source
var Hashes = false

Should the application print all hashes it knows about

View Source
var NoStream = false

Do not print out results as they are processed

View Source
var NoThreads = runtime.NumCPU()
View Source
var Progress = false

Progress uses ui bar to display the progress of files

View Source
var Recursive = false

Recursive to walk directories

View Source
var StandardInput = false

If data is being piped in using stdin

View Source
var StreamSize int64 = 1_000_000

Number of bytes in a size to enable memory maps or streaming

View Source
var Trace = false

Trace enables trace logging output which is extremely verbose

View Source
var Verbose = false

Verbose enables verbose logging output

View Source
var Version = "1.2.0"

Global Version

Functions

func Process

func Process()

Process is the main entry point of the command line it sets everything up and starts running

Types

type Result

type Result struct {
	File        string
	MD4         string
	MD5         string
	SHA1        string
	SHA256      string
	SHA512      string
	Blake2b256  string
	Blake2b512  string
	Blake3      string
	Sha3224     string
	Sha3256     string
	Sha3384     string
	Sha3512     string
	Bytes       int64
	Description string
	Version     string
	Date        string
	Urls        []string
}

Holds the result after processing the hashes for the file

Jump to

Keyboard shortcuts

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