package hash
import "git.sr.ht/~pingoo/stdx/crypto/hash"
Index ¶
- func NewSha256() hash.Hash
- func NewSha512() hash.Hash
- func SHA512(data []byte) []byte
- func Sha256(data []byte) []byte
Functions ¶
func NewSha256 ¶
NewSha256 returns a new `hash.Hash` computing the SHA2-256 checksum.
func NewSha512 ¶
NewSha512 returns a new `hash.Hash` computing the SHA2-512 checksum.
func SHA512 ¶
SHA512 returns the SHA2-512 checksum of the data.
func Sha256 ¶
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.