ergl / sss_py

Basic Shamir's Secret Sharing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 Pony version in its own repo.

Usage

Requires Python 3.6 or above.

$ python sss.py -h
usage: sss [-h] [-e | -d] -t threshold -n shares

A simple Shamir's secret sharing program

optional arguments:
  -h, --help            show this help message and exit
  -e, --encrypt         Tells sss to encrypt a secret
  -d, --decrypt         Tells sss to decrypt a secret
  -t threshold, --threshold threshold
                        Share threshold to recover the secret
  -n shares, --shares shares
                        Number of shares to generate

About

Basic Shamir's Secret Sharing

License:MIT License


Languages

Language:Python 100.0%