deemru/curve25519 问题修复 & 功能扩展

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

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

deemru/curve25519

Composer 安装命令:

composer require deemru/curve25519

包简介

Curve25519 sign/verify

README 文档

README

packagist php-v GitHub codacy license

Curve25519 implements the missing functionality of sign/verify on elliptic curve 25519.

  • Cryptographically compatible sign/verify
  • Built in cache for last key calculations
  • Sodium variant of the sign function (~2000x faster)

Usage

$curve25519 = new Curve25519();
$msg = 'Hello, world!';

$privateKey = random_bytes( 32 );
$sig = $curve25519->sign( $msg, $privateKey );

$publicKey = $curve25519->getPublicKeyFromPrivateKey( $privateKey );
$verify = $curve25519->verify( $sig, $msg, $publicKey );

if( !$verify )
    exit( 1 );

Requirements

Recommended

Installation

Require through Composer:

{
    "require": {
        "deemru/curve25519": "1.0.*"
    }
}

Notice

统计信息

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

GitHub 信息

  • Stars: 12
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固