Documentation
¶
Index ¶
Constants ¶
View Source
const (
BufferSize = 1024 * 1024 * 4
)
Variables ¶
This section is empty.
Functions ¶
func ComputeHashList ¶
func ComputeHashList() []string
ComputeHashList returns a list of all available hash types.
Types ¶
type GenericHash ¶
type GenericHash struct { Input []byte `json:"input"` HashBytes []byte `json:"hashBytes"` HexDigest string `json:"hexDigest"` Duration int64 `json:"duration"` DurationStr string `json:"durationStr"` }
GenericHash represents a hash of data.
func ComputeHash ¶
func ComputeHash(data []byte, hashType string, file bool) (*GenericHash, error)
ComputeHash returns a hash of the data using the specified hash type.
type HasherArray ¶
type Hashes ¶
type Hashes struct { Adler32 string `json:"adler32"` MD4 string `json:"md4"` MD5 string `json:"md5"` SHA1 string `json:"sha1"` SHA2 SHA2 `json:"sha2"` SHA3 SHA3 `json:"sha3"` FNV FNV `json:"fnv"` CRC CRC `json:"crc"` Blake Blake `json:"blake"` Duration int64 `json:"duration"` DurationStr string `json:"durationStr"` }
func HasherMulti ¶
func HasherMultiFile ¶
func (Hashes) Array ¶
func (h Hashes) Array() []HasherArray
Click to show internal directories.
Click to hide internal directories.