Giter Club home page Giter Club logo

shamir-s-secret-sharing-with-dart's Introduction

Shamir's Secret Sharing

Shamir’s Secret Sharing is an algorithm in cryptography created by Adi Shamir. It is a form of secret sharing, where a secret is divided into parts, giving each participant its own unique part. To reconstruct the original secret, a minimum number of parts is required.

Suppose we want to use a threshold scheme to share our secret , where ; and is a prime number.

Choose random positive integers with . Build the polynomial

Let us construct any n points out of it, for instance set to retrieve . Every participant is given a point (a non-zero integer input to the polynomial, and the corresponding integer output) along with the prime which defines the finite field to use. Given any subset of of these pairs , we can find the coefficients of the polynomial using interpolation. The secret is the constant term .

Example:

Enter message:1155112410
Enter n:5
Enter k:3
P: 1155112423
Secret:
(1, 452597065)
(2, 216943235)
(3, 448150920)
(4, 1146220120)
(5, 925989)

shamir-s-secret-sharing-with-dart's People

Contributors

mynameiskenlee avatar

Stargazers

bowlarbear avatar

Watchers

 avatar

Forkers

bowlarbear

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.