定制 cline/shamir 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cline/shamir

最新稳定版本:2.0.1

Composer 安装命令:

composer require cline/shamir

包简介

Shamir's Secret Sharing scheme implementation for PHP

README 文档

README

GitHub Workflow Status Latest Version on Packagist Software License Total Downloads

A pure PHP implementation of Shamir's Secret Sharing scheme with fluent conductor API, allowing secrets to be split into N shares where any M shares can reconstruct the original secret. Features zero external dependencies, information-theoretic security, and automatic chunking for large secrets.

Requirements

Requires PHP 8.4+

Installation

composer require cline/shamir

Documentation

Full documentation is available at https://docs.cline.sh/shamir:

Quick Example

use Cline\Shamir\Shamir;

// Split a secret into 5 shares, requiring 3 to reconstruct
$shares = Shamir::for('my-encryption-key')
    ->threshold(3)
    ->shares(5)
    ->split();

// Reconstruct from any 3 shares
$secret = Shamir::from($shares->take(3))->combine();

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.

Credits

License

The MIT License. Please see License File for more information.

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固