wordlist

package
v0.0.0-...-d724b4b Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRandomNotAvailable = errors.New("reading from random did not return required data")

ErrRandomNotAvailable is returned when reading from random doesn't return enough bytes.

Functions

func PGP

func PGP(value []byte) (words []string)

PGP returns strings from the PGP word list.

func PGPAtIndex

func PGPAtIndex(index int, value byte) (word string)

PGPAtIndex returns a string from the PGP word list. Index is the index of the item in the source list. Value is the value of the byte in the source list.

func Random

func Random(length int) (words []string, err error)

Random returns random words from the list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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