Featuring UNIX-style composability, this command-line tool facilitates splitting and combining secrets using HashiCorp Vault's implementation of Shamir's Secret Sharing algorithm.
❯ shamir split -n 3 -t 2
Secret: ************************
67442ef838a57cbc3063a487d7ca861cf490b9026f5f3a41be
89ad77b930245a4a60f4698baace1ddbeaec94f0a96400a82a
9ef082cd4f3456dc4bf161460a7cd5f580ed1fd426fa3ff5d7
❯ shamir combine -t 2
Share #1: 67442ef838a57cbc3063a487d7ca861cf490b9026f5f3a41be
Share #2: 9ef082cd4f3456dc4bf161460a7cd5f580ed1fd426fa3ff5d7
SayHelloToMyLittleFriend
❯ echo "SayHelloToMyLittleFriend" | shamir split -n 3 -t 2 > shares.txt
Secret: ************************
❯ head -n 2 shares.txt | shamir combine -t 2
SayHelloToMyLittleFriend
Platform | Package manager | Command |
---|---|---|
macOS, Linux | Homebrew | ❯ brew install incipher/tap/shamir |