Generates mnemonic sequences from random bytes from stdin.
When encoding, the program uses 2048-word dictionary. Each word
encodes 11 bits of byte stream provided in stdin. In case the byte
stream is divisible by 11 without remainder, we add additional of
word before the last word. That way we can decode it back.
$ openssl rand 12 | mnesec
blur-snow-connect-guilt-valid-canyon-inside-square-anxiety
We can decode encoded sequence back with -d
option.
$ echo blur-snow-connect-guilt-valid-canyon-inside-square-anxiety \
| mnesec -d \
| mnesec
blur-snow-connect-guilt-valid-canyon-inside-square-anxiety
Run cargo build --release
and put ./target/release/mnesec
whereever you want.
You can get the package from the AUR.
$ yay -S mnesec