ghash

package
v0.0.0-...-f3abbe6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetB64

func GetB64(in []byte) string

func GetHMAC

func GetHMAC(hashType HashType, input, key []byte) []byte

GetHMAC returns a keyed-hash message authentication code using the desired hashtype

func GetHex

func GetHex(in []byte) string

func GetMD5

func GetMD5(in []byte) []byte

GetMD5 returns a MD5 hash of a byte array

func GetSHA1

func GetSHA1(in []byte) []byte

func GetSHA256

func GetSHA256(in []byte) []byte

GetSHA256 returns a SHA256 hash of a byte array

func GetSHA512

func GetSHA512(input []byte) []byte

GetSHA512 returns a SHA512 hash of a byte array

func HexEncodeToString

func HexEncodeToString(input []byte) string

HexEncodeToString takes in a hexadecimal byte array and returns a string

func Md5Buf

func Md5Buf(buf []byte) (string, error)

func Md5File

func Md5File(filename string) (string, error)

func Md5Str

func Md5Str(str string) (string, error)

Types

type HashType

type HashType string
const (
	HashTypeSHA1       HashType = "sha1"
	HashTypeSHA256     HashType = "sha256"
	HashTypeSHA512     HashType = "sha512"
	HashTypeSHA512_384 HashType = "sha512_384"
	HashTypeMD5        HashType = "md5"
)

Jump to

Keyboard shortcuts

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