hash

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForFile

func ForFile(filename string, hasher hash.Hash) (string, error)

ForFile returns the hex-encoded hash for the provided filename and hasher.

func SHA1ForFile added in v0.3.0

func SHA1ForFile(filename string) (string, error)

SHA1ForFile returns the hex-encoded sha1 hash for the provided filename. TODO: check if we can remove this function.

func SHA256ForFile

func SHA256ForFile(filename string) (string, error)

SHA256ForFile returns the hex-encoded sha256 hash for the provided filename.

func SHA512ForFile

func SHA512ForFile(filename string) (string, error)

SHA512ForFile returns the hex-encoded sha512 hash for the provided filename.

Types

This section is empty.

Jump to

Keyboard shortcuts

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