hash

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SHA256Bytes

func SHA256Bytes(data []byte) string

SHA256Bytes computes the SHA-256 hash of a byte slice and returns it as a hex string.

func SHA256File

func SHA256File(path string) (string, error)

SHA256File computes the SHA-256 hash of a file and returns it as a hex string.

func TruncatedHash

func TruncatedHash(hash string, n int) string

TruncatedHash returns the first n characters of a SHA-256 hash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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