hashing

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sha256

func Sha256(data string) string

Sha256 returns the SHA-256 hexadecimal hash of the given string input. It is useful for generating fixed-length signatures or identifiers from plaintext.

func Sha256Bytes

func Sha256Bytes(data []byte) string

Sha256Bytes returns the SHA-256 hexadecimal hash of the given byte slice. This is suitable when working with binary data directly instead of strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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