hashutil

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONSHA256Hex

func JSONSHA256Hex(value any) string

JSONSHA256Hex returns the SHA-256 digest of value's standard JSON encoding.

func JSONSHA256HexPrefix

func JSONSHA256HexPrefix(value any, n int) string

JSONSHA256HexPrefix returns the first n bytes of value's JSON SHA-256 digest as hex.

func SHA256Hex

func SHA256Hex(raw []byte) string

SHA256Hex returns the full lowercase hex SHA-256 digest for raw bytes.

func SHA256HexPrefix

func SHA256HexPrefix(raw []byte, n int) string

SHA256HexPrefix returns the first n bytes of raw's SHA-256 digest as hex.

func SHA256HexString

func SHA256HexString(value string) string

SHA256HexString returns the full lowercase hex SHA-256 digest for a string.

func SHA256HexStringPrefix

func SHA256HexStringPrefix(value string, n int) string

SHA256HexStringPrefix returns the first n bytes of value's SHA-256 digest as hex.

Types

This section is empty.

Jump to

Keyboard shortcuts

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