PHPackages                             ali-eltaweel/openssl-codec - 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. ali-eltaweel/openssl-codec

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

ali-eltaweel/openssl-codec
==========================

OpenSSL codec.

1.0.0(10mo ago)081PHPPHP ^8.1

Since Jun 29Pushed 10mo agoCompare

[ Source](https://github.com/ali-eltaweel/openssl-codec)[ Packagist](https://packagist.org/packages/ali-eltaweel/openssl-codec)[ RSS](/packages/ali-eltaweel-openssl-codec/feed)WikiDiscussions master Synced 1mo ago

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

OpenSSL Codec
=============

[](#openssl-codec)

- [OpenSSL Codec](#openssl-codec)
    - [Installation](#installation)
    - [Usage](#usage)
        - [Encoding](#encoding)
        - [Decoding](#decoding)

---

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

[](#installation)

Install *openssl-codec* via Composer:

```
composer require ali-eltaweel/openssl-codec
```

Usage
-----

[](#usage)

### Encoding

[](#encoding)

```
use Codecs\OpenSSLCodec;

// store this in a secure place
$iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length('aes-128-gcm'));

$codec = new OpenSSLCodec('aes-128-gcm', 'MySuperDuperSecretPassphrase', $iv);

$code = $codec->encode('Super Secret Data');
```

### Decoding

[](#decoding)

```
use Codecs\OpenSSLCodec;

// load the same IV used for encoding
$iv = '';

$codec = new OpenSSLCodec('aes-128-gcm', 'MySuperDuperSecretPassphrase', $iv);

$superSecretData = $codec->decode($code);
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance53

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

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

Unknown

Total

1

Last Release

323d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7564e10ba11b25d8700726a92f669e38be2ff9191e8f6ccdfafc36678ffab2b8?d=identicon)[ali-eltaweel](/maintainers/ali-eltaweel)

---

Top Contributors

[![ali-eltaweel](https://avatars.githubusercontent.com/u/45892756?v=4)](https://github.com/ali-eltaweel "ali-eltaweel (2 commits)")

### Embed Badge

![Health badge](/badges/ali-eltaweel-openssl-codec/health.svg)

```
[![Health](https://phpackages.com/badges/ali-eltaweel-openssl-codec/health.svg)](https://phpackages.com/packages/ali-eltaweel-openssl-codec)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[symfony/semaphore

Symfony Semaphore Component

373.9M6](/packages/symfony-semaphore)[crell/fp

Functional utilities for PHP 8 and later

91429.8k11](/packages/crell-fp)[php-stubs/wordpress-globals

Global variables and global constants from WordPress core.

13799.0k17](/packages/php-stubs-wordpress-globals)[instaclick/symfony2-coding-standard

A code standard to check against the Symfony coding standards.

1048.5k13](/packages/instaclick-symfony2-coding-standard)

PHPackages © 2026

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