PHPackages                             d3nengineer/stream-encryption-psr7 - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. d3nengineer/stream-encryption-psr7

ActiveLibrary[HTTP &amp; Networking](/categories/http)

d3nengineer/stream-encryption-psr7
==================================

PSR-7 stream decorators for media encryption (AES-CBC + HKDF + HMAC)

v1.0.1(3mo ago)10MITPHPPHP ^8.2CI passing

Since Mar 30Pushed 3mo agoCompare

[ Source](https://github.com/d3nengineer/stream-encryption-psr7)[ Packagist](https://packagist.org/packages/d3nengineer/stream-encryption-psr7)[ RSS](/packages/d3nengineer-stream-encryption-psr7/feed)WikiDiscussions main Synced 4w ago

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

Stream Encryption PSR-7
=======================

[](#stream-encryption-psr-7)

`d3nengineer/stream-encryption-psr7` is a PHP 8.2+ library that exposes lazy PSR-7 stream decorators for media encryption and decryption using AES-CBC, HKDF-SHA256, and truncated HMAC-SHA256 payloads.

Warning

Do not use in production. This repository was created as part of a test assignment and is published for demonstration purposes only. It is not production-ready and is not recommended for real-world use.

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

[](#installation)

```
composer require d3nengineer/stream-encryption-psr7
```

Recommended Entry Point
-----------------------

[](#recommended-entry-point)

Use `Infra\StreamEncryption\Stream\StreamFactory` for the common happy path. It creates lazy encrypting and decrypting decorators without changing the underlying stream behavior or exception model.

```
