PureBasic Shamir Secret Sharing is an open-source, self-contained and educational implementation of the Shamir Secret Sharing Scheme, written entirely in PureBasic.

Shamir Secret Sharing is a cryptographic method that splits a secret into multiple parts (shares), such that any combination of at least T shares can reconstruct the original secret, while any number of shares fewer than T reveals no usable information.

This implementation operates over the finite field GF(257), allowing correct handling of all byte values (0–255) without loss, making it compatible with any type of string or binary-compatible data.

Main Features

Complete implementation of Shamir Secret Sharing

Arithmetic over GF(257)

Compatible with all character strings

Robust Lagrange interpolation

Safe modular inverse computation

Shares encoded in hexadecimal (3 characters per byte)

Clear, well-commented source code

⚠️ Disclaimer
This project is intended for educational and demonstration

Features

  • Split a secret into N shares
  • Configurable reconstruction threshold T
  • Reconstruct the secret from any valid set of T shares
  • No information leakage with fewer than T shares
  • Secure modular arithmetic
  • Fully working example included

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow PureBasic Shamir Secret Sharing

PureBasic Shamir Secret Sharing Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of PureBasic Shamir Secret Sharing!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Registered

2026-01-03