checksum

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyFile

func VerifyFile(algo Algorithm, expectedChecksum, filename string) (err error)

VerifyFile validates file integrity against expected checksum.

Types

type Algorithm

type Algorithm string

Algorithm checksum algorithm type

const (
	// SHA256 algorithm using SHA-256 hash function.
	SHA256 Algorithm = "SHA256"
	// SHA1 algorithm using SHA-1 hash function.
	SHA1 Algorithm = "SHA1"
)

Jump to

Keyboard shortcuts

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