Shamir's Secret Sharing

Version 1.0.0.0 (2.87 KB) by Yue Wu
Shamir's Secret Sharing scheme, which is also known as (k,n) threshold is implemented in this file.
2.1K Downloads
Updated 10 Jan 2011

View License

Shamir's Secret Sharing is an algorithm in cryptography. It is a form of secret sharing, where a secret is divided into parts, giving each participant its own unique part, where some of the parts or all of them are needed in order to reconstruct the secret.
Counting on all participants to combine together the secret might be impractical, and therefore we sometimes use the threshold scheme where any k of the parts are sufficient to reconstruct the original secret.

Three M files are contained in the zip file.
1. Demo.m: a demo of showing how Shamir's scheme sharing secret among people
2. ShamirSharing.m : the function to share secret info
3. ShamirReconstruction.m: the function to reconstruct info from parts

Any problems please send me email.

Cite As

Yue Wu (2024). Shamir's Secret Sharing (https://www.mathworks.com/matlabcentral/fileexchange/29989-shamir-s-secret-sharing), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Encryption / Cryptography in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0