PHPackages                             deemru/curve25519 - 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. deemru/curve25519

ActiveLibrary

deemru/curve25519
=================

Curve25519 sign/verify

1.0.10(12mo ago)1139.4k↓30.8%22MITPHPPHP &gt;=5.6CI passing

Since Jan 13Pushed 12mo ago1 watchersCompare

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

READMEChangelog (5)Dependencies (1)Versions (12)Used By (2)

Curve25519
==========

[](#curve25519)

[![packagist](https://camo.githubusercontent.com/8744f37a902e7fa661554890d998dbda5572aa41c2e16db2bbd6d21d35a8bc30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465656d72752f637572766532353531392e737667)](https://packagist.org/packages/deemru/curve25519) [![php-v](https://camo.githubusercontent.com/aacf2a127b07147ab1aa9c368e300f40003a2739bd53aa36a4c20df838eb8c72/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6465656d72752f637572766532353531392e737667)](https://packagist.org/packages/deemru/curve25519) [![GitHub](https://camo.githubusercontent.com/62ba637c2304628c06203cfa5c6878cfd2e7a804b0f38c9b7cc40f4989e31731/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6465656d72752f437572766532353531392f7068702e796d6c3f6c6162656c3d676974687562253230616374696f6e73)](https://github.com/deemru/Curve25519/actions/workflows/php.yml) [![codacy](https://camo.githubusercontent.com/2641a502e801a34ce8bc04d01992509e6fcb38d740ee5d80f0ae55958273fb70/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f67726164652f34396536653134386534373734393464613934333230383235633731356466642e7376673f6c6162656c3d636f64616379)](https://app.codacy.com/gh/deemru/Curve25519/files) [![license](https://camo.githubusercontent.com/428d54237f2fd7d045bfacdda660665ac0356f7893a690ae28a08062465a18fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6465656d72752f637572766532353531392e737667)](https://packagist.org/packages/deemru/curve25519)

[Curve25519](https://github.com/deemru/Curve25519) implements the missing functionality of sign/verify on [elliptic curve 25519](https://en.wikipedia.org/wiki/Curve25519).

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

Usage
-----

[](#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
------------

[](#requirements)

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

Recommended
-----------

[](#recommended)

- [PHP](http://php.net) &gt;= 7.2
- [Sodium](http://php.net/manual/en/book.sodium.php)

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

[](#installation)

Require through Composer:

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

Notice
------

[](#notice)

- `sign_sodium` hashes private key internally by SHA-512
- Beware of `rseed` functionality (for experts only)
- Consider to use [ED25519\_NO\_SHA512SK sodium build](https://gist.github.com/deemru/145c3eb323bb3fb0f1cc4a72f5567640)

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance50

Moderate activity, may be stable

Popularity36

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~231 days

Recently: every ~531 days

Total

11

Last Release

364d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.2

1.0.3PHP &gt;=5.6

### 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 (32 commits)")

---

Tags

curve25519phpsignsignatureverifywavesplatformverifysignCurve25519wavesplatform

### Embed Badge

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

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

###  Alternatives

[paragonie/sodium_compat

Pure PHP implementation of libsodium; uses the PHP extension if it exists

930131.6M155](/packages/paragonie-sodium-compat)[paragonie/halite

High-level cryptography interface powered by libsodium

1.2k9.4M63](/packages/paragonie-halite)[spomky-labs/pki-framework

A PHP framework for managing Public Key Infrastructures. It comprises X.509 public key certificates, attribute certificates, certification requests and certification path validation.

2725.9M11](/packages/spomky-labs-pki-framework)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[zytzagoo/smtp-validate-email

Perform email address verification via SMTP

452909.9k3](/packages/zytzagoo-smtp-validate-email)[simplito/elliptic-php

Fast elliptic curve cryptography

2312.2M254](/packages/simplito-elliptic-php)

PHPackages © 2026

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