Skip to content

gomjw/hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages