A secret sharing command line tool using Shamir's Secret Sharing.
Find a file
2026-11-15 23:54:03 +01:00
src Add better error handling 2026-11-15 23:54:03 +01:00
.gitignore feat: implement secret-sharing-cli 2020-08-03 20:39:26 +08:00
Cargo.lock Add better error handling 2026-11-15 23:54:03 +01:00
Cargo.toml Add better error handling 2026-11-15 23:54:03 +01:00
LICENSE Create LICENSE 2020-08-03 11:24:47 +08:00
README.md docs: fix the example 2020-08-03 20:46:15 +08:00
rustfmt.toml feat: implement secret-sharing-cli 2020-08-03 20:39:26 +08:00

secret-sharing-cli

Crate License

A secret sharing command line tool using Shamir's Secret Sharing.

Install

Make sure you have cargo installed.

cargo install secret-sharing-cli

Usage

Run secret-sharing-cli -h to see the help message.

For example, to split a string secret that requires 2 shares to recover and generate 4 shares, run:

secret-sharing-cli split --string <secret> --threshold 2 --number 4

Then to recover the secret, use any two shares:

secret-sharing-cli recover --string <share 1> <share 2>

Besides, splitting binary files is also supported using --file flags.

Dependencies

Thanks to the following crates:

License

GPL-3.0 License