mirror of
https://github.com/mii443/RustySecrets.git
synced 2025-08-22 16:25:32 +00:00
edd5ee123125a4aa0b9914a427e9f50dd461c417
secretshare
This program is an implementation of Shamir's secret sharing. A secret can be split into multiple shares and a selectable number of shares is required to reconstruct the secret again.
Example
Passing a secret to secretshare for encoding:
$ echo My secret | ./secretshare -e2,5
2-1-LiTyeXwEP71IUA-Qj6n
2-2-i8OZZ1et6MgMvg-xwsJ
2-3-6J5LbU7KpRAw5A-27nn
2-4-3BBPWwHiWyKEfw-0ADd
2-5-v02dURiFFvq4JQ-zLIz
The parameters following the -e
option tell secretshare
to create 5 shares of which 2 will be necessary for decoding.
Decoding a subset of shares (one share per line) can be done like this:
$ echo -e "2-2-i8OZZ1et6MgMvg-xwsJ \n 2-4-3BBPWwHiWyKEfw-0ADd" | ./secretshare -d
My secret
Building
This project is Cargo-enabled. So, you should be able to build it with
$ cargo build --release
Description
Languages
Rust
99.5%
Makefile
0.5%