Skip to content

Generates mnemonic sequences from random bytes from stdin

License

Notifications You must be signed in to change notification settings

yunmikun2/mnesec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mneseq

Generates mnemonic sequences from random bytes from stdin.

How does it work

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.

Example

$ 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

Installation

Run cargo build --release and put ./target/release/mnesec whereever you want.

Arch Linux

You can get the package from the AUR.

$ yay -S mnesec

About

Generates mnemonic sequences from random bytes from stdin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages