checksum

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Overview

Package checksum provides checksum computation for files using md5, sha1, sha256 and sha512 algorithms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeChecksum

func ComputeChecksum(r io.Reader, algo string) (hash string, err error)

ComputeChecksum computes a `md5`, `sha1`, `sha256` or `sha512` message digest.

func CreateChecksumFiles

func CreateChecksumFiles(files []string, checksumAlgos []string, checksumDst string, filesBasename bool) ([]string, error)

CreateChecksumFiles computes `md5`, `sha1`, `sha256` or `sha512` message digest and save it into a file. It returns checksum file paths or an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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