Skip to content

mvrahden/go-shamir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-shamir

A small CLI tool for Shamir's Secret Sharing written in Go, using Vault's Shamir implementation.

Usage

Split secret:

$ echo -n "very very secret" | ./bin/shamir split -p 4 -t 2
baa3e1b656d6b253052d293b99daf7fa4a
07cfbaa1bf6982413dd52abb2578ca6373
c9cc6036850debccca9dd598bebf27acd1
db7b57989fb3d27775c62f20fa858dd338

Combine secret:

$ cat <<EOF | ./bin/shamir combine
> 07cfbaa1bf6982413dd52abb2578ca6373
> c9cc6036850debccca9dd598bebf27acd1
> EOF
very very secret