hash

package module
v0.0.0-...-1e7c3b6 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: MIT Imports: 8 Imported by: 0

README

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

Documentation

Overview

Package hash returns the hash strings for strings and files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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