checksum

package
v0.0.0-...-ce320d0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Compute and check SHA256/SHA512 message digest

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Data256

func Data256(data []byte) []byte

Data256 returns the SHA256 checksum of data.

func Data512

func Data512(data []byte) []byte

Data512 returns the SHA512 checksum of data.

func Path256

func Path256(path string) ([]byte, error)

Path256 returns the SHA256 checksum of the file in path. Uses io.Copy() to be usable on large files.

func Path512

func Path512(path string) ([]byte, error)

Path512 returns the SHA512 checksum of the file in path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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