hash

package
v0.0.0-...-f08b0e3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

type Hash struct {
	// contains filtered or unexported fields
}

func NewHash

func NewHash(key string) (*Hash, error)

func (*Hash) Hash

func (h *Hash) Hash(data []byte) ([]byte, error)

func (*Hash) HashBase64

func (h *Hash) HashBase64(data []byte) (string, error)

func (*Hash) Verify

func (h *Hash) Verify(data []byte, hash []byte) bool

func (*Hash) VerifyBase64

func (h *Hash) VerifyBase64(data []byte, hash string) bool

Jump to

Keyboard shortcuts

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