Skip to content

πŸ”‘ Split and combine secrets using Shamir's Secret Sharing algorithm

License

Notifications You must be signed in to change notification settings

incipher/shamir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f57924d Β· Aug 23, 2023

History

81 Commits
Aug 23, 2023
Jun 8, 2023
Aug 23, 2023
Jan 14, 2023
Jun 18, 2022
Oct 9, 2022
Jul 17, 2022
Mar 25, 2021
Aug 23, 2023
Aug 23, 2023
Aug 23, 2023
Jan 14, 2023
Jan 14, 2023

Repository files navigation

shamir

Split and combine secrets using Shamir's Secret Sharing algorithm

Table of Contents

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.

Background

What is Shamir's Secret Sharing algorithm?

Installation

Platform Package manager Command
Linux, macOS Homebrew $ brew install incipher/tap/shamir
Linux, macOS, Windows Binaries

Usage

Interactive

A GIF showing how to use shamir interactively

Non-interactive

$ echo "SayHelloToMyLittleFriend" | shamir split -n 5 -k 3 > shares.txt
Secret: ************************
$ head -n 3 shares.txt | shamir combine -k 3
SayHelloToMyLittleFriend

License

CC0