Skip to content

Latest commit

 

History

History
84 lines (56 loc) · 1.46 KB

File metadata and controls

84 lines (56 loc) · 1.46 KB

hash

GoDoc

Package hash returns the hash strings for strings and files

Install

go get -u github.com/gomjw/hash/...

Import

import "github.com/gomjw/hash"

Usage

func GetMD5

func GetMD5(text string) string

GetMD5 returns the MD5 hash of a string.

func GetMD5FromFile

func GetMD5FromFile(file os.File) string

GetMD5FromFile returns the MD5 hash of a file.

func GetSHA1

func GetSHA1(text string) string

GetSHA1 returns the SHA1 hash of a string.

func GetSHA1FromFile

func GetSHA1FromFile(file os.File) string

GetSHA1FromFile returns the SHA1 hash of a file.

func GetSHA256

func GetSHA256(text string) string

GetSHA256 returns the SHA256 hash of a string.

func GetSHA256FromFile

func GetSHA256FromFile(file os.File) string

GetSHA256FromFile returns the SHA256 hash of a file.

func GetSHA512

func GetSHA512(text string) string

GetSHA512 returns the SHA512 hash of a string.

func GetSHA512FromFile

func GetSHA512FromFile(file os.File) string

GetSHA512FromFile returns the SHA512 hash of a file.


Made by the awesome contributors of @gomjw  ·  Maintainer @MarvinJWendt  ·  Readme template version: 1.1.0