Shamir's Secret Sharing Algorithm implementation in golang combined with PGP and a mail delivery system
Shamir's Secret Sharing Algorithm implementation in Golang combined with PGP and a mail delivery system
SplitShare uses Shamir's Secret Sharing Algorithm to split a secret in multiple parts and PGP to encrypt each share with the public key of the owner and then send the encrypted share via mail.
You can download and run the pre-builted binary or build it from source.
To work properly SplitShare needs:
./splitshare <SECRET FILE>
Starting SplitShare will ask for:
And for each user:
Alternatively you can load a public keyring file with users public key and SplitShare will automatically load keys from user's email.
./splitshare --pub-keyring ./pubring.gpg <SECRET FILE>
NOTE: you must configure the SMTP credentials inside the config.toml
file.
To build SplitShare you need the following packages:
github.com/SSSaaS/sssa-golang
github.com/TheZ3ro/go-pgp/pgp
github.com/go-mail/mail
github.com/spf13/viper
You can then clone the repo and build it with:
git clone https://github.com/Nhoya/SplitShare
go build splitshare.go
To decrypt the secret you need the tool located inside the decrypt
directory
You can either build it or use the pre-builted one.
To build the decryption tool you just need:
github.com/SSSaaS/sssa-golang
You can then clone the repo and build it with
git clone https://github.com/Nhoya/SplitShare
cd SplitShare/decrypt
go build decrypt.go