entropy

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromHex

func FromHex(input string) ([]byte, error)

FromHex creates entropy bits from a hex string

func Random

func Random(length int) ([]byte, error)

Random creates a random entropy of the given length

Types

type Bits

type Bits []byte

Bits represents a byte slice of individual bits

func CheckSum

func CheckSum(ent []byte) Bits

CheckSum returns a slice of bits from the given entropy

func CheckSummed

func CheckSummed(ent []byte) Bits

CheckSummed returns a bit slice of entropy with an appended check sum

Jump to

Keyboard shortcuts

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