Shamir secret sharing (and recovery)
Go to file
ndiezel0 8ac011408f
Merge pull request #2 from rbkmoney/CDS-93/ft/fix_record_types
CDS-93: Add types to `share` record
2019-07-16 14:51:55 +03:00
include CDS-93: Add types to share record 2019-07-16 13:53:31 +03:00
src MSPF-440: upgrade codebase to OTP 21 and move to rebar3 2019-05-06 17:07:09 +03:00
test MSPF-440: upgrade codebase to OTP 21 and move to rebar3 2019-05-06 17:07:09 +03:00
.gitignore Implement Shamir secret sharing and recovery. 2011-08-14 23:15:44 +01:00
.travis.yml enable container-based testing 2015-02-10 00:01:47 +00:00
Makefile add PropEr test 2011-12-05 22:34:40 -05:00
README.md add Travis build icon 2012-03-16 23:31:53 +00:00
rebar.config MSPF-440: upgrade codebase to OTP 21 and move to rebar3 2019-05-06 17:07:09 +03:00
rebar.lock MSPF-440: upgrade codebase to OTP 21 and move to rebar3 2019-05-06 17:07:09 +03:00

Build Status

Shamir

Pure Erlang implementation of Shamir Secret Sharing.

Example Usage

1> Shares = shamir:share(<<"hello">>, 3, 4).
... shares printed here
2> shamir:recover(lists:sublist(Shares, 3).
<<"hello">>