hashing

package
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesPadding

func BytesPadding(b bytes) []byte

BytesPadding adds padding to the bytes

func CompareHash

func CompareHash(hashed string, value string) bool

func ConvertToByte

func ConvertToByte(payload string) []byte

ConvertToByte takes a string and converts it to an array of bytes

func Hash

func Hash(value string) string

Hash computes a SHA256 hash from a given value

Types

This section is empty.

Jump to

Keyboard shortcuts

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