Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PGPWordList = strings.Split(pgpWordList, "\n")
The PGP wordlist, as a slice.
View Source
var WordList = PGPWordList
The wordlists to use.
View Source
var WordMap = pgpWordMap
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.
Click to show internal directories.
Click to hide internal directories.