HashStrings

package module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: MIT Imports: 4 Imported by: 17

README

HashStrings: Simple interface to hash a string with SHA-256

license

Not much to it. Just call the standard library for SHA-256 hash with a simplified interface.

MIT Licensed

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashByte

func HashByte(a []byte) (rv []byte)

func HashBytes

func HashBytes(a ...[]byte) []byte

hash a set of []byte and return in byte form

func HashFile added in v0.1.4

func HashFile(fn string) (hash string, err error)

HashFile hash a file in the file system - return hash.

func HashStrings

func HashStrings(a ...string) string

HashStrings hash a set of strings and return in hex-strings form

func HashStringsAsByte added in v0.1.3

func HashStringsAsByte(a ...string) []byte

HashStringsAsByte hash a set of strings and return in hex-strings form

func HashStringsSha512 added in v0.1.1

func HashStringsSha512(a ...string) string

func Sha256

func Sha256(a ...string) string

HashStrings hash a set of strings and return in hex-strings form

Types

This section is empty.

Jump to

Keyboard shortcuts

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