Documentation ¶
Index ¶
Constants ¶
const (
UiBarMax = 1024 // 1024 should be dividable by most things
)
Variables ¶
var AuditFile = ""
AuditFile sets the file that we want to audit against similar to hashdeep
var Debug = false
Debug enables debug logging output
var DirFilePaths = []string{}
DirFilePaths is not set via flags but by arguments following the flags for file or directory to process
var FileAudit = false
If set will enable the internal file audit logic to kick in
var FileListQueueSize = 1000
FileListQueueSize is the queue of files found and ready to be processed
var FileOutput = ""
FileOutput sets the file that output should be written to
var Format = ""
Format sets the output format of the formatter
var Hash = []string{}
List of hashes that we want to process
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
var Hashes = false
Should the application print all hashes it knows about
var MTime = false
MTime enable mtime calculation and output
var NoStream = false
Do not print out results as they are processed
var NoThreads = runtime.NumCPU()
var Progress = false
Progress uses ui bar to display the progress of files
var Recursive = false
Recursive to walk directories
var StandardInput = false
If data is being piped in using stdin
var StreamSize int64 = 1_000_000
Number of bytes in a size to enable memory maps or streaming
var Trace = false
Trace enables trace logging output which is extremely verbose
var Verbose = false
Verbose enables verbose logging output
var Version = "1.4.0"
Global Version
Functions ¶
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 MTime *time.Time }
Holds the result after processing the hashes for the file