Basic Shamir's Secret Sharing
  • Pony 99.1%
  • Makefile 0.9%
Find a file
2020-01-05 22:24:36 +01:00
sss Refactor 2020-01-05 16:35:24 +01:00
.gitignore Initial commit 2020-01-04 12:19:28 +01:00
LICENSE Add usage, license 2020-01-05 22:24:36 +01:00
Makefile Add usage, license 2020-01-05 22:24:36 +01:00
README.md Add usage, license 2020-01-05 22:24:36 +01:00

Shamir's Secret Sharing Scheme

A basic Shamir's Secret Sharing implementation, built for the Cryptography and Coding Theory course at UCM, 2019/2020.

You can find the Python 3 version in its own repo.

Build

A simple make will do (provided you have ponyc installed).

Usage

By default, the compiled binary will be located in the _build folder.

$ ./_build/sss -h
usage: sss [<options>] [<args> ...]

A simple Shamir's secret sharing program

Options:
   -h, --help=false
   -t, --threshold        Share threshold to recover the secret
   -n, --shares           Number of shares to generate
   -e, --encrypt=true     Tells sss to encrypt a secret
   -d, --decrypt=false    Tells sss to decrypt a secret