PHPackages                             micseres/micro-service-dh - 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. micseres/micro-service-dh

ActiveLibrary[Security](/categories/security)

micseres/micro-service-dh
=========================

Micro Service Diffie Hellman

1.1.0(5y ago)112.2k1MITPHPPHP &gt;=7.2

Since Sep 21Pushed 5y ago2 watchersCompare

[ Source](https://github.com/micseres/micro-service-dh)[ Packagist](https://packagist.org/packages/micseres/micro-service-dh)[ RSS](/packages/micseres-micro-service-dh/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

Micro Service Diffie Hellman Encryption
=======================================

[](#micro-service-diffie-hellman-encryption)

Usage
-----

[](#usage)

Alice

```
$this->dh = new DiffieHellman(true);

$requestToBob = [
    'p' => $this->dh->getPrime(),
    'g', $this->dh->getGenerator(),
    'public_key', $this->dh->getPublicKey()
];

//...

$pass = $this->dh->getSharedKey($responseFromBob->public_key)
```

Bob

```
$this->dh = new DiffieHellman(false);
$this->dh->generatePrimaryAsSlave($requestFromBob['p'], $requestFromBob['g']);
$pass = $this->dh->getSharedKey($requestFromBob->public_key)
```

License
-------

[](#license)

The Soft Deletable Bundle is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~941 days

Total

2

Last Release

1846d ago

PHP version history (2 changes)1.0.0PHP ^7.2

1.1.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/e16fc1fc5b6c849bc670e0ec96ac659fb8159ea2131e29809cef101a013a3e2a?d=identicon)[zogxray](/maintainers/zogxray)

---

Top Contributors

[![maritechpro](https://avatars.githubusercontent.com/u/30262797?v=4)](https://github.com/maritechpro "maritechpro (2 commits)")[![zogxray](https://avatars.githubusercontent.com/u/3336180?v=4)](https://github.com/zogxray "zogxray (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/micseres-micro-service-dh/health.svg)

```
[![Health](https://phpackages.com/badges/micseres-micro-service-dh/health.svg)](https://phpackages.com/packages/micseres-micro-service-dh)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[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)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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