Documentation ¶
Overview ¶
Package pgpwordlist provides the pgpwordlist for easier hashes/seeds.
This package provides the pgpwordlist for use when generating a human readable hash or seed as well as functions for working with it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var PGPWordList = strings.Split(pgpWordList, "\n")
PGPWordList as a slice.
var WordList = PGPWordList
WordList to use.
var WordMap = pgpWordMap
WordMap is the mapping of WordList to the values.
Functions ¶
func ToBytes ¶
ToBytes converts a string to a byte slice using the PGP word list. Notably, it strips words of their case, so any case input is valid.
func ToBytesChecksum ¶
ToBytesChecksum converts a string to a byte slice using the PGP word list. Notably, it strips words of their case, so any case input is valid. Unlike ToBytes, it uses a sha256d hash to verify the integrity of the data after.
func ToStringChecksum ¶
ToStringChecksum converts a byteslice to a string of words from the PGP word list, along with a one word checksum appended to the end. The checksum is the first byte of the sha256d hash.
Types ¶
This section is empty.