appvise/supercop 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

appvise/supercop

Composer 安装命令:

composer require appvise/supercop

包简介

Supercop helper library

README 文档

README

Helper library for handling supercop-ref10 ed25519 digital signatures

Heads-up

This library makes use of a compiled command-line version of orlp/ed25519, namely finwo/supercop-cli. It uses this command-line utility through the exec function, which may have been blocked by your hosting provider.

Work-in-progress

This library is still a work-in-progress and not all features you may expect have been implemented yet.

TODO:

  • Shared-secret generation between different keys (a.k.a. key exchange)
  • Loading a public-only key

API


use Appvise\Supercop\Key;

// Generate or keys for this example
$keypair = Key::generate();
$keypair = Key::fromFile("/path/to/key/file");

// Generate a signature
$signature = $keypair->sign("hello world");

// Signature validation
var_dump($keypair->verify("hello world", $signature   )); // true
var_dump($keypair->verify("HELLO WORLD", $signature   )); // false
var_dump($keypair->verify("hello-world", $signature   )); // false
var_dump($keypair->verify("hello world", "invalid-sig")); // false
var_dump($keypair->verify("hello world", "invalid-sig")); // false

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-12-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固