checksum

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MIT Imports: 17 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 Adler32sum added in v1.8.0

func Adler32sum(filename string, _ int, _ string) (string, error)

Adler32sum returns XXH checksum of content in reader bytes: 32

func Adler32sumReader added in v1.8.0

func Adler32sumReader(reader io.Reader, _ int, _ string) (string, error)

Adler32sumReader returns XXH checksum of content in reader bytes: 32

func BLAKE2Bsum added in v1.7.0

func BLAKE2Bsum(filename string, bytes int, _ string) (string, error)

BLAKE2Bsum returns BLAKE2b checksum of filename bytes: 256, 384, 512

func BLAKE2BsumReader added in v1.7.0

func BLAKE2BsumReader(reader io.Reader, bytes int, _ string) (string, error)

BLAKE2BsumReader returns BLAKE2b checksum of content in reader bytes: 256, 384, 512

func BLAKE3sum added in v1.7.0

func BLAKE3sum(filename string, bytes int, _ string) (string, error)

BLAKE3sum returns BLAKE3 checksum of filename bytes: 256, 384, 512

func BLAKE3sumReader added in v1.7.0

func BLAKE3sumReader(reader io.Reader, bytes int, _ string) (string, error)

BLAKE3sumReader returns BLAKE3 checksum of content in reader bytes: 256, 384, 512

func CRC32Reader added in v1.7.0

func CRC32Reader(reader io.Reader, _ int, poly string) (string, error)

CRC32Reader returns CRC32 checksum of content in reader bytes:

func CRC32sum added in v1.7.0

func CRC32sum(filename string, _ int, poly string) (string, error)

CRC32sum returns CRC32 checksum of content in reader bytes:

func CRC64Reader added in v1.7.0

func CRC64Reader(reader io.Reader, _ int, poly string) (string, error)

CRC64Reader returns CRC64 checksum of content in reader bytes:

func CRC64sum added in v1.7.0

func CRC64sum(filename string, _ int, poly string) (string, error)

CRC64sum returns CRC64 checksum of content in reader bytes:

func FNVasum added in v1.8.0

func FNVasum(filename string, bytes int, _ string) (string, error)

FNVasum returns XXH checksum of content in reader bytes: 32, 64, 128

func FNVasumReader added in v1.8.0

func FNVasumReader(reader io.Reader, bytes int, _ string) (string, error)

FNVasumReader returns XXH checksum of content in reader bytes: 32, 64, 128

func FNVsum added in v1.8.0

func FNVsum(filename string, bytes int, _ string) (string, error)

FNVsum returns XXH checksum of content in reader bytes: 32, 64, 128

func FNVsumReader added in v1.8.0

func FNVsumReader(reader io.Reader, bytes int, _ string) (string, error)

FNVsumReader returns XXH checksum of content in reader bytes: 32, 64, 128

func MD5sum

func MD5sum(filename string, _ int, _ string) (string, error)

MD5sum returns MD5 checksum of filename bytes:

func MD5sumReader

func MD5sumReader(reader io.Reader, _ int, _ string) (string, error)

MD5sumReader returns MD5 checksum of content in reader bytes:

func SHA1sum

func SHA1sum(filename string, _ int, _ string) (string, error)

SHA1sum returns SHA-1 checksum of filename bytes:

func SHA1sumReader

func SHA1sumReader(reader io.Reader, _ int, _ string) (string, error)

SHA1sumReader returns SHA-1 checksum of content in reader bytes:

func SHA2sum added in v1.6.0

func SHA2sum(filename string, bytes int, _ string) (string, error)

SHA2sum returns SHA-2 checksum of filename bytes: 224, 256, 384, 512

func SHA2sumReader added in v1.6.0

func SHA2sumReader(reader io.Reader, bytes int, _ string) (string, error)

SHA2sumReader returns SHA-2 checksum of content in reader bytes: 224, 256, 384, 512

func SHA3sum

func SHA3sum(filename string, bytes int, _ string) (string, error)

SHA3sum returns SHA-3 checksum of filename bytes: 224, 256, 384, 512

func SHA3sumReader

func SHA3sumReader(reader io.Reader, bytes int, _ string) (string, error)

SHA3sumReader returns SHA-3 checksum of content in reader bytes: 224, 256, 384, 512

func XXHsum added in v1.6.0

func XXHsum(filename string, bytes int, _ string) (string, error)

XXHsum returns XXH(32/64) checksum of filenamePackage crc32 implements the 32-bit cyclic redundancy check, or CRC-32, checksum. See https://en.wikipedia.org/wiki/Cyclic_redundancy_check for information. bytes: 32, 64

func XXHsumReader added in v1.6.0

func XXHsumReader(reader io.Reader, bytes int, _ string) (string, error)

XXHsumReader returns XXH checksum of content in reader bytes: 32, 64

Types

This section is empty.

Jump to

Keyboard shortcuts

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