hash

package
v0.0.0-...-ea7d51e Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 1 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 {
	HashType crypt.Hash
}

func NewHash

func NewHash(hashType crypt.Hash) *Hash

func (*Hash) EncodeToString

func (h *Hash) EncodeToString(src []byte, encodeType ...crypt.Encode) (dst string, err error)

EncodeToString gets hashed bytes with defined hashType and then encode to string

func (*Hash) Get

func (h *Hash) Get(src []byte) (dst []byte, err error)

Get gets hashed bytes with defined hashType

Jump to

Keyboard shortcuts

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