checksum

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package checksum computes checksums, like MD5 or SHA256, for large files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blake2s256

func Blake2s256(filename string) (string, error)

Blake2s256 returns BLAKE2s-256 checksum of filename

func Blake2s256Reader

func Blake2s256Reader(reader io.ReadCloser) (string, error)

Blake2s256Reader returns SHA1 checksum of content in reader

func CRC32

func CRC32(filename string) (string, error)

CRC32 returns CRC-32-IEEE checksum of filename

func CRCReader

func CRCReader(reader io.Reader) (string, error)

CRCReader returns CRC-32-IEEE checksum of content in reader

func MD5sum

func MD5sum(filename string) (string, error)

MD5sum returns MD5 checksum of filename

func MD5sumReader

func MD5sumReader(reader io.ReadCloser) (string, error)

MD5sumReader returns MD5 checksum of content in reader

func SHA1sum

func SHA1sum(filename string) (string, error)

SHA1sum returns SHA1 checksum of filename

func SHA1sumReader

func SHA1sumReader(reader io.ReadCloser) (string, error)

SHA1sumReader returns SHA1 checksum of content in reader

func SHA256sum

func SHA256sum(filename string) (string, error)

SHA256sum returns SHA256 checksum of filename

func SHA256sumReader

func SHA256sumReader(reader io.ReadCloser) (string, error)

SHA256sumReader returns SHA256 checksum of content in reader

Types

This section is empty.

Jump to

Keyboard shortcuts

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