hashx

package
v0.0.0-...-1228a46 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Std

func Base64Std(raw []byte) string

Base64Std is an Encoder that encodes raw data in Base64 standard encoding

func Hex

func Hex(raw []byte) string

Hex is an Encoder that encodes raw data in hex format

func SHA256

func SHA256(data []byte) []byte

SHA256 hashes data in SHA-256.

func SHA256ToString

func SHA256ToString(data []byte, encoder Encoder) string

SHA256ToString hashes data in SHA-256 and then runs it through the given Encoder.

Types

type Encoder

type Encoder func([]byte) string

Encoder is a function to turn bytes of raw data to a string

Jump to

Keyboard shortcuts

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