orchash

package
v0.0.0-...-b5a46b0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: MIT Imports: 5 Imported by: 0

README

orchash: a library to provide sane defaults for hashing and verifying hashes, including hashing JSON data

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeHash

func ComputeHash(data []byte) string

func ComputeJSONHash

func ComputeJSONHash(data interface{}) (string, error)

func MustComputeJSONHash

func MustComputeJSONHash(data interface{}) string

func VerifyHash

func VerifyHash(h string, data []byte) (bool, error)

func VerifyJSONHash

func VerifyJSONHash(h string, data interface{}) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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