Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dcsunset/secret-sharing-cli
A secret sharing command line tool using Shamir's Secret Sharing
https://github.com/dcsunset/secret-sharing-cli
Last synced: 3 months ago
JSON representation
A secret sharing command line tool using Shamir's Secret Sharing
- Host: GitHub
- URL: https://github.com/dcsunset/secret-sharing-cli
- Owner: DCsunset
- License: gpl-3.0
- Created: 2020-08-03T03:19:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-04T08:48:18.000Z (over 4 years ago)
- Last Synced: 2024-09-14T09:08:43.547Z (4 months ago)
- Language: Rust
- Size: 20.5 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# secret-sharing-cli
[![Crate](https://badgen.net/crates/v/secret-sharing-cli)](https://crates.io/crates/secret-sharing-cli)
[![License](https://badgen.net/github/license/dcsunset/secret-sharing-cli)](https://github.com/DCsunset/secret-sharing-cli)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 --threshold 2 --number 4
```Then to recover the secret, use any two shares:
```
secret-sharing-cli recover --string
```Besides, splitting binary files is also supported using `--file` flags.
## Dependencies
Thanks to the following crates:
* [sharks](https://github.com/c0dearm/sharks)
* [clap](https://github.com/clap-rs/clap)
* [base64](https://github.com/marshallpierce/rust-base64)## License
GPL-3.0 License