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(1y ago)012MITPHPPHP ^8.2

Since Jun 9Pushed 1y 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 today

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

30

—

LowBetter than 62% of packages

Maintenance48

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

381d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[google/cloud-core

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

346132.9M112](/packages/google-cloud-core)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.1M159](/packages/algolia-algoliasearch-client-php)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)[getgrav/grav

Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS

15.6k86.4k1](/packages/getgrav-grav)

PHPackages © 2026

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