Skip to content
/ shamir Public
forked from incipher/shamir

🔑 Split and combine secrets using Shamir's Secret Sharing algorithm

License

Notifications You must be signed in to change notification settings

langdal/shamir

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shamir

Split and combine secrets using Shamir's Secret Sharing algorithm

Description

Featuring UNIX-style composability, this command-line tool facilitates splitting and combining secrets using HashiCorp Vault's implementation of Shamir's Secret Sharing algorithm.

Usage

Interactive

❯ shamir split -n 3 -t 2
Secret: ************************
67442ef838a57cbc3063a487d7ca861cf490b9026f5f3a41be
89ad77b930245a4a60f4698baace1ddbeaec94f0a96400a82a
9ef082cd4f3456dc4bf161460a7cd5f580ed1fd426fa3ff5d7
❯ shamir combine -t 2
Share #1: 67442ef838a57cbc3063a487d7ca861cf490b9026f5f3a41be
Share #2: 9ef082cd4f3456dc4bf161460a7cd5f580ed1fd426fa3ff5d7
SayHelloToMyLittleFriend

Non-interactive

❯ echo "SayHelloToMyLittleFriend" | shamir split -n 3 -t 2 > shares.txt
Secret: ************************
❯ head -n 2 shares.txt | shamir combine -t 2
SayHelloToMyLittleFriend

Installation

Platform Package manager Command
macOS, Linux Homebrew ❯ brew install incipher/tap/shamir

License

Creative Commons Zero v1.0 Universal

About

🔑 Split and combine secrets using Shamir's Secret Sharing algorithm

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%