hasher

package
v0.0.0-...-a8938b0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package hasher generates canonical hashes for either a byte array, reader, or writer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBytes

func FromBytes(b []byte) (string, error)

Types

type Reader

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

func NewReader

func NewReader(r io.Reader) *Reader

func (*Reader) Read

func (hr *Reader) Read(p []byte) (int, error)

func (*Reader) String

func (hr *Reader) String() string

type Writer

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

func NewWriter

func NewWriter(w io.Writer) *Writer

func (*Writer) String

func (hw *Writer) String() string

func (*Writer) Write

func (hw *Writer) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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