PHPackages                             deemru/shamir255 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. deemru/shamir255

ActiveLibrary[Security](/categories/security)

deemru/shamir255
================

Splits sensitive data by Shamir's secret sharing

2.0.1(4mo ago)29MITPHPPHP &gt;=5.6CI passing

Since Mar 2Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/deemru/Shamir255)[ Packagist](https://packagist.org/packages/deemru/shamir255)[ Docs](https://github.com/deemru/Shamir255)[ RSS](/packages/deemru-shamir255/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Shamir255
=========

[](#shamir255)

[![packagist](https://camo.githubusercontent.com/7d503ec0ee0cc213afbf53095a7369d87f5628036ab69909841f43f20662d325/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465656d72752f7368616d69723235352e737667)](https://packagist.org/packages/deemru/shamir255) [![php-v](https://camo.githubusercontent.com/e07cfd4bd6e70fea303b4bfc7da0fdb2cd4a76e27d2d16ea016d5b57ad129221/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6465656d72752f7368616d69723235352e737667)](https://packagist.org/packages/deemru/shamir255) [![GitHub](https://camo.githubusercontent.com/87446a429481e51b0fc17cbdfd65c31b22303ec067355160bfd2193046d1752e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6465656d72752f5368616d69723235352f7068702e796d6c3f6c6162656c3d676974687562253230616374696f6e73)](https://github.com/deemru/Shamir255/actions/workflows/php.yml) [![license](https://camo.githubusercontent.com/e2e347e6d429f0c01161e1f2f20670aa794c5d08a0dd4fb0d000bd783839f5c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6465656d72752f7368616d69723235352e737667)](https://packagist.org/packages/deemru/shamir255)

[Shamir255](https://github.com/deemru/Shamir255) implements [Shamir's Secret Sharing](https://en.wikipedia.org/wiki/Shamir%27s_secret_sharing) algorithm over [GF(256)](https://en.wikipedia.org/wiki/Finite_field_arithmetic).

- Pure PHP implementation (no extensions required)
- Share size equals secret size (efficient storage)
- Supports secrets of any length
- Up to 255 shares with threshold from 2 to 255

Usage
-----

[](#usage)

```
$sensitive = 'Hello, world!';
$needed = 2;
$total = 3;
$shares = Shamir255::share( $sensitive, $needed, $total );
assert( $sensitive === Shamir255::recover( [ 1 => $shares[1], 2 => $shares[2] ] ) );
```

Requirements
------------

[](#requirements)

- [PHP](http://php.net) &gt;= 5.6

Installation
------------

[](#installation)

```
composer require deemru/shamir255
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance75

Regular maintenance activity

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~151 days

Total

3

Last Release

135d ago

Major Versions

1.0.0 → 2.0.02025-12-28

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10706633?v=4)[Dmitrii Pichulin](/maintainers/deemru)[@deemru](https://github.com/deemru)

---

Top Contributors

[![deemru](https://avatars.githubusercontent.com/u/10706633?v=4)](https://github.com/deemru "deemru (5 commits)")

---

Tags

securitykeysplitprivatesharesensitiveshamirgf256

### Embed Badge

![Health badge](/badges/deemru-shamir255/health.svg)

```
[![Health](https://phpackages.com/badges/deemru-shamir255/health.svg)](https://phpackages.com/packages/deemru-shamir255)
```

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[spatie/laravel-csp

Add CSP headers to the responses of a Laravel app

8519.6M19](/packages/spatie-laravel-csp)[spomky-labs/aes-key-wrap

AES Key Wrap for PHP.

5022.7M14](/packages/spomky-labs-aes-key-wrap)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
