Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ergl/sss_py
Basic Shamir's Secret Sharing
https://github.com/ergl/sss_py
cryptography shamir shamir-secret-sharing
Last synced: about 1 month ago
JSON representation
Basic Shamir's Secret Sharing
- Host: GitHub
- URL: https://github.com/ergl/sss_py
- Owner: ergl
- License: mit
- Created: 2020-01-05T21:03:18.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-05T21:26:18.000Z (almost 5 years ago)
- Last Synced: 2023-02-28T12:17:12.927Z (over 1 year ago)
- Topics: cryptography, shamir, shamir-secret-sharing
- Language: Python
- Size: 4.88 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/ergl/sss).
## Usage
Requires Python 3.6 or above.
```
$ python sss.py -h
usage: sss [-h] [-e | -d] -t threshold -n sharesA 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
```