Code Monkey home page Code Monkey logo

splitshare's Introduction

SplitShare

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.

Usage

You can download and run the pre-builted binary or build it from source.

To work properly SplitShare needs:

  • The public key of each user
  • The secret stored in a file
  • A working SMTP server

./splitshare <SECRET FILE>

Starting SplitShare will ask for:

  • Maximum number of shares
  • Minumum amount of shares needed to decrypt the secret

And for each user:

  • The users mail
  • The path of the public key

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.

Building

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

Decrypt

To decrypt the secret you need the tool located inside the decrypt directory

You can either build it or use the pre-builted one.

Building the decryption tool

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

splitshare's People

Contributors

nhoya avatar thez3ro avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.