checksum

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package checksum provides functionality for computing checksums.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compute

func Compute(path string, algo Algo) (string, error)

Compute the checksum over the directory at the given path using the specified cryptographic hash algorithm.

Types

type Algo

type Algo int

Algo represents a cryptographic hash algorithm.

const (
	// Sha256 identifies the SHA256 hashing algorithm.
	Sha256 Algo = iota

	// BestAlgo identifies the best available hashing algorithm.
	BestAlgo = Sha256
)

Jump to

Keyboard shortcuts

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