package hash

import "git.sr.ht/~pingoo/stdx/crypto/hash"

Index

Functions

func NewSha256

func NewSha256() hash.Hash

NewSha256 returns a new `hash.Hash` computing the SHA2-256 checksum.

func NewSha512

func NewSha512() hash.Hash

NewSha512 returns a new `hash.Hash` computing the SHA2-512 checksum.

func SHA512

func SHA512(data []byte) []byte

SHA512 returns the SHA2-512 checksum of the data.

func Sha256

func Sha256(data []byte) []byte

Sha256 returns the SHA2-256 checksum of the data.

Source Files

sha2.go

Version
v0.0.0-20240218134121-094174641f6e (latest)
Published
Feb 18, 2024
Platform
linux/amd64
Imports
3 packages
Last checked
4 months ago

Tools for package owners.