PHPackages                             mathbdw/whatsapp-stream-encryption-test - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mathbdw/whatsapp-stream-encryption-test

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mathbdw/whatsapp-stream-encryption-test
=======================================

Test task PSR-7 Stream decorators for WhatsApp encryption algorithms

v2.0.1(10mo ago)012MITPHPPHP ^8.2

Since Jun 9Pushed 10mo agoCompare

[ Source](https://github.com/mathbdw/whatsapp-stream-encryption-test)[ Packagist](https://packagist.org/packages/mathbdw/whatsapp-stream-encryption-test)[ RSS](/packages/mathbdw-whatsapp-stream-encryption-test/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (6)Used By (0)

Installation
============

[](#installation)

```
composer require mathbdw/whatsapp-stream-encryption-test
```

Usage
=====

[](#usage)

Encrypt stream
--------------

[](#encrypt-stream)

```
$pathIn = './static/IMAGE.original';
$pathOut = './static/IMAGE.encrypted';
$key = './samples/IMAGE.key';
$encryption = new \WhatsApp\StreamEncryption\Models\EncryptWhatsAppStreamImage($pathIn, $pathOut);
$encryption->exec($key);

```

The key is not required. If there is no key after encryption, the key file will be added to the output file folder.

```
$pathIn = './static/IMAGE.original';
$pathOut = './static/IMAGE.encrypted';

$encryption = new \WhatsApp\StreamEncryption\Models\EncryptWhatsAppStreamImage($pathIn, $pathOut);
$encryption->exec();
```

Decrypt stream
--------------

[](#decrypt-stream)

```
$pathIn = './static/IMAGE.encrypted';
$pathOut = './static/IMAGE.original';
$key = './samples/IMAGE.key';
$decryption = new \WhatsApp\StreamEncryption\Models\DecryptWhatsAppStreamImage($pathIn, $pathOut);
$decryption->exec($key);

```

Type file encryption

```
  //Video
  $enStream = new \WhatsApp\StreamEncryption\Models\EncryptWhatsAppStreamImage($pathIn, $pathOut);
  $deStream = new \WhatsApp\StreamEncryption\Models\DecryptWhatsAppStreamImage($pathIn, $pathOut);
  //Audio
  $enStream = new \WhatsApp\StreamEncryption\Models\EncryptWhatsAppStreamAudio($pathIn, $pathOut);
  $deStream = new \WhatsApp\StreamEncryption\Models\DecryptWhatsAppStreamAudio($pathIn, $pathOut);
  //Image
  $enStream = new \WhatsApp\StreamEncryption\Models\EncryptWhatsAppStreamImage($pathIn, $pathOut);
  $deStream = new \WhatsApp\StreamEncryption\Models\DecryptWhatsAppStreamImage($pathIn, $pathOut);
  //Document
  $enStream = new \WhatsApp\StreamEncryption\Models\EncryptWhatsAppStreamDocument($pathIn, $pathOut);
  $deStream = new \WhatsApp\StreamEncryption\Models\DecryptWhatsAppStreamDocument($pathIn, $pathOut);
```

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance56

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Total

3

Last Release

325d ago

Major Versions

v1.0.0 → v2.0.02025-06-15

PHP version history (2 changes)v1.0.0PHP ^8.0

v2.0.1PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![mathbdw](https://avatars.githubusercontent.com/u/49303201?v=4)](https://github.com/mathbdw "mathbdw (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mathbdw-whatsapp-stream-encryption-test/health.svg)

```
[![Health](https://phpackages.com/badges/mathbdw-whatsapp-stream-encryption-test/health.svg)](https://phpackages.com/packages/mathbdw-whatsapp-stream-encryption-test)
```

###  Alternatives

[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

343121.4M78](/packages/google-cloud-core)[wallabag/wallabag

open source self hostable read-it-later web application

12.6k2.2k](/packages/wallabag-wallabag)[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

73142.3k25](/packages/jaxon-php-jaxon-core)[neos/flow-development-collection

Flow packages in a joined repository for pull requests.

144179.3k3](/packages/neos-flow-development-collection)[fisharebest/webtrees

webtrees online genealogy

73710.5k9](/packages/fisharebest-webtrees)[php-heroku-client/php-heroku-client

A PHP client for the Heroku Platform API

24404.8k4](/packages/php-heroku-client-php-heroku-client)

PHPackages © 2026

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