Skip to content

PGP word list and functionality to encode and decode series of PGP words

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
license_apache.txt
MIT
license_mit.txt
Notifications You must be signed in to change notification settings

messerli-informatik-ag/pgp-word-list

Repository files navigation

PGP word list

Build NuGet

PGP word list and functionality to encode and decode series of PGP words

Usage

// Look up a word for an even byte
PgpWords.ToEvenWord(0xC0); // => "slowdown"
// Look up a byte for an odd word
PgpWords.ToOddByteOrNone("Yucatan"); // => Some(0xFF)

// Convert a byte array to a sequence of pgp words:
PgpWordSequence.ToWords(new byte[] { 0xC0, 0xFF, 0xEE }); // => "slowdown-Yucatan-tycoon"
// Convert a list of words back to bytes:
PgpWordSequence.ToBytesOrNone("slowdown-Yucatan-tycoon"); // => Some([0xC0, 0xFF, 0xEE])

About

PGP word list and functionality to encode and decode series of PGP words

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
license_apache.txt
MIT
license_mit.txt

Stars

Watchers

Forks

Packages

No packages published

Languages