hash

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashAlgorithm

type HashAlgorithm interface {
	Hash([]byte) ([]byte, error)
}

type HashFlags

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

func MakeHashFlags

func MakeHashFlags(fg *flag.FlagSet) *HashFlags

func (*HashFlags) Do

func (hf *HashFlags) Do() error

func (*HashFlags) Prepare

func (hf *HashFlags) Prepare()

type MD5

type MD5 struct{}

func (*MD5) Hash

func (md5 *MD5) Hash(input []byte) ([]byte, error)

type SHA256

type SHA256 struct{}

func (*SHA256) Hash

func (sha *SHA256) Hash(input []byte) ([]byte, error)

type SHA512

type SHA512 struct{}

func (*SHA512) Hash

func (sha *SHA512) Hash(input []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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