hash

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2018 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HashLength ...
	HashLength = 32
	// LongHashLength ...
	LongHashLength = 64
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

type Hash [HashLength]byte

Hash ...

func NewHash

func NewHash(bs []byte) Hash

NewHash ...

func Sha256

func Sha256(raw []byte) Hash

Sha256 ...

func Sha3_256

func Sha3_256(raw []byte) Hash

Sha3_256 ...

func Sha512_256

func Sha512_256(raw []byte) Hash

Sha512_256 ...

func (Hash) ToBase32Hex

func (h Hash) ToBase32Hex() string

ToBase32Hex ...

func (Hash) ToBase32Std

func (h Hash) ToBase32Std() string

ToBase32Std ...

func (Hash) ToBase64Std

func (h Hash) ToBase64Std() string

ToBase64Std ...

func (Hash) ToBase64URL

func (h Hash) ToBase64URL() string

ToBase64URL ...

func (Hash) ToHex

func (h Hash) ToHex() string

ToHex ...

type LongHash

type LongHash [LongHashLength]byte

LongHash ...

func NewLongHash

func NewLongHash(bs []byte) LongHash

NewLongHash ...

func Sha3_512

func Sha3_512(raw []byte) LongHash

Sha3_512 ...

func Sha512

func Sha512(raw []byte) LongHash

Sha512 ...

func (LongHash) ToBase32Hex

func (h LongHash) ToBase32Hex() string

ToBase32Hex ...

func (LongHash) ToBase32Std

func (h LongHash) ToBase32Std() string

ToBase32Std ...

func (LongHash) ToBase64Std

func (h LongHash) ToBase64Std() string

ToBase64Std ...

func (LongHash) ToBase64URL

func (h LongHash) ToBase64URL() string

ToBase64URL ...

func (LongHash) ToHex

func (h LongHash) ToHex() string

ToHex ...

Jump to

Keyboard shortcuts

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