md5

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: AGPL-3.0 Imports: 4 Imported by: 1

Documentation

Overview

Package md5 provides utility functions for generating MD5 hashes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBytes

func FromBytes(data []byte) string

FromBytes returns an MD5 checksum string from data.

func FromFilePath

func FromFilePath(filePath string) (string, error)

FromFilePath returns an MD5 checksum string for the file at filePath. It returns an empty string and an error if an error occurs opening the file.

func FromReader

func FromReader(src io.Reader) (string, error)

FromReader returns an MD5 checksum string from data read from src. It returns an empty string and an error if an error occurs reading from src.

func FromString

func FromString(str string) string

FromString returns an MD5 checksum string from str.

Types

This section is empty.

Jump to

Keyboard shortcuts

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