PHPackages                             zenden2k/whatsapp-encrypt - 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. zenden2k/whatsapp-encrypt

ActiveLibrary

zenden2k/whatsapp-encrypt
=========================

WhatsApp encryption decorators for PSR-7 streams

1.0.0(9mo ago)03MITPHPPHP &gt;=7.4

Since Aug 6Pushed 9mo agoCompare

[ Source](https://github.com/zenden2k/WhatsAppEncrypt)[ Packagist](https://packagist.org/packages/zenden2k/whatsapp-encrypt)[ RSS](/packages/zenden2k-whatsapp-encrypt/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Тестовое задание PHP (WhatsApp encryption decorators for PSR-7 streams)
=======================================================================

[](#тестовое-задание-php-whatsapp-encryption-decorators-for-psr-7-streams)

Использование пакета
--------------------

[](#использование-пакета)

```
composer require zenden2k/whatsapp-encrypt
```

Для работы примеров дополнительно нужно установить:

```
composer require guzzlehttp/psr7

```

### Дешифрование

[](#дешифрование)

```
use Zenden2k\WhatsAppEncrypt\DecryptStream;
use Zenden2k\WhatsAppEncrypt\Helper;
use GuzzleHttp\Psr7\Utils;

$file = Utils::streamFor(fopen('samples/IMAGE.encrypted', 'rb'));
$decryptStream = new DecryptStream($file, file_get_contents('samples/IMAGE.key'), Helper::MEDIA_TYPE_IMAGE);
file_put_contents('output/IMAGE.original', $decryptStream->getContents());
```

### Шифрование

[](#шифрование)

```
use Zenden2k\WhatsAppEncrypt\EncryptStream;
use Zenden2k\WhatsAppEncrypt\Helper;
use GuzzleHttp\Psr7\Utils;

$file = Utils::streamFor(fopen('samples/VIDEO.original', 'rb'));
$sidecarStream = Utils::streamFor(fopen('output/VIDEO.sidecar', 'wb'));
$encryptStream = new EncryptStream($file, file_get_contents('samples/VIDEO.key'), Helper::MEDIA_TYPE_VIDEO, $sidecarStream);
file_put_contents('output/VIDEO.encrypted', $encryptStream->getContents());
```

К сожалению, генерация информации для стриминга (sidecar) дает результат, не совпадающий с эталоном.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance58

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

278d ago

### Community

Maintainers

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

---

Top Contributors

[![zenden2k](https://avatars.githubusercontent.com/u/2940480?v=4)](https://github.com/zenden2k "zenden2k (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zenden2k-whatsapp-encrypt/health.svg)

```
[![Health](https://phpackages.com/badges/zenden2k-whatsapp-encrypt/health.svg)](https://phpackages.com/packages/zenden2k-whatsapp-encrypt)
```

###  Alternatives

[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

538204.9M23](/packages/league-uri-interfaces)[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[simplesamlphp/saml2

SAML2 PHP library from SimpleSAMLphp

30317.2M40](/packages/simplesamlphp-saml2)[php-heroku-client/php-heroku-client

A PHP client for the Heroku Platform API

24404.8k4](/packages/php-heroku-client-php-heroku-client)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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