checksum

package
v0.88.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package checksum computes and verifies file checksums.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSHA256Hash

func GetSHA256Hash(data io.Reader) (string, error)

GetSHA256Hash returns the SHA256 hash of data read from the provided reader.

func GetSHA256OfFile

func GetSHA256OfFile(path string) (string, error)

GetSHA256OfFile returns the SHA256 hash of the provided file.

func VerifyFile

func VerifyFile(path string, algorithm api.ChecksumAlgorithm, digest string) error

VerifyFile checks a file against the expected digest using the given algorithm.

Types

This section is empty.

Jump to

Keyboard shortcuts

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