checksum

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileHashCmd

func NewFileHashCmd(_ func()) *cobra.Command

Types

type Encoding

type Encoding string
const (
	HexLower Encoding = "hex"
	HexUpper Encoding = "hex-up"
	Base64   Encoding = "base64"
)

type FileHash

type FileHash struct{}

func NewFileHash

func NewFileHash() *FileHash

func (*FileHash) Calculate

func (fh *FileHash) Calculate(hashType string, filePath string) ([]byte, error)

func (*FileHash) Format

func (fh *FileHash) Format(rawHash []byte, e Encoding) (string, error)

Jump to

Keyboard shortcuts

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