sha256

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SHA256

type SHA256 struct{}

SHA256 is implement hash type interface

func New

func New() *SHA256

New creates a new SHA256 hashing method

func (*SHA256) Hash

func (h *SHA256) Hash(data ...[]byte) []byte

Hash generates a SHA-256 hash from a byte array

func (*SHA256) HashLength

func (h *SHA256) HashLength() int

HashLength returns the length of hashes generated by Hash() in bytes

Jump to

Keyboard shortcuts

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