hashio

package
v0.193.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashContent added in v0.188.0

func HashContent(filename string, extra ...string) (string, error)

HashContent computes a SHA-256 hash of the file content combined with extra content, and returns the first 16 characters of the hex-encoded hash.

func SHA256

func SHA256(filename string) (string, error)

SHA256 hashes the given file with crypto.SHA256 and returns the checksum as a base-16 (hex) string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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