PHPackages                             pollen-solutions/encryption - 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. [Security](/categories/security)
4. /
5. pollen-solutions/encryption

ActiveLibrary[Security](/categories/security)

pollen-solutions/encryption
===========================

Pollen Solutions - Encryption Component - Tools to encrypting and decrypting with AES-256 and AES-128 encryption.

v1.0.0(4y ago)1191MITPHPPHP ^7.4 || ^8.0

Since Aug 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/pollen-solutions/encryption)[ Packagist](https://packagist.org/packages/pollen-solutions/encryption)[ Docs](https://www.presstify.com/pollen-solutions/encryption/)[ RSS](/packages/pollen-solutions-encryption/feed)WikiDiscussions master Synced 1mo ago

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

Encryption Component
====================

[](#encryption-component)

[![Latest Stable Version](https://camo.githubusercontent.com/b211e9f61890faeb6890be6cb3ccd47da0a5239900cbd3267e10dbfaa4fc2454/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f6c6c656e2d736f6c7574696f6e732f656e6372797074696f6e2e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/pollen-solutions/encryption)[![MIT Licensed](https://camo.githubusercontent.com/daa52099573be5a50c320c4387496400f2f722e49f86a42db8d5778130d3582d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e3f7374796c653d666f722d7468652d6261646765)](LICENSE.md)[![PHP Supported Versions](https://camo.githubusercontent.com/d9d71d0b69072c51e1ff7adfdb6270f896f75787500ce6437120e23727c081d1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d2533453d372e342d3838393242463f7374796c653d666f722d7468652d6261646765266c6f676f3d706870)](https://www.php.net/supported-versions.php)

Pollen Solutions **Encryption** Component provides tools to encrypting and decrypting text via OpenSSL using AES-256 and AES-128 encryption.

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

[](#installation)

```
composer require pollen-solutions/encryption
```

Basic Usage
-----------

[](#basic-usage)

```
use Pollen\Encryption\Encrypter;

// Cypher (AES-128-CBC|AES-256-CBC) and Key definitions
$cypher = 'AES-256-CBC';
// Recommended (use a static key. Replace 'static_key' by your own string)
$key = md5('static_key');
// Dynamic random key (only valid during current request)
// $key = Encrypter::generateKey($cypher);

// Encrypter instanciation
$encrypter = new Encrypter($key, $cypher);

// To encrypt string
$toEncrypt = 'toEncrypt';

// Encryption
$encrypted = $encrypter->encrypt($toEncrypt);
var_dump('encrypted string : ' . $encrypted);
// ex. eyJpdiI6ImwxcmNicytwcVpkZmdsem4zTEpROVE9PSIsInZhbHVlIjoiK0JTN2EzWFVFazJoYi9abk1maW4vZz09IiwibWFjIjoiNDFiMzNlNzJkZjQxNGNhNmQyYmQ3MmViYjc0MTMyNmZiOTJmZTdlNDNmZmZiZGM3NzE1ZTc5YzE3YjIyZGQwZCJ9

// Décryption
$decrypted = $encrypter->decrypt($encrypted);
var_dump('decrypted string : ' . $decrypted);
// >> toEncrypt
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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

Total

2

Last Release

1740d ago

### Community

Maintainers

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

---

Top Contributors

[![jordy-manner](https://avatars.githubusercontent.com/u/733356?v=4)](https://github.com/jordy-manner "jordy-manner (1 commits)")

---

Tags

decryptionencryptionphpencryptdecryptcomponentpollen-solutions

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pollen-solutions-encryption/health.svg)

```
[![Health](https://phpackages.com/badges/pollen-solutions-encryption/health.svg)](https://phpackages.com/packages/pollen-solutions-encryption)
```

###  Alternatives

[nzo/url-encryptor-bundle

The NzoUrlEncryptorBundle is a Symfony Bundle used to Encrypt and Decrypt data and variables in the Web application or passed through URL

961.0M2](/packages/nzo-url-encryptor-bundle)[xxtea/xxtea

XXTEA is a fast and secure encryption algorithm. This is a XXTEA library for PHP.

11341.7k](/packages/xxtea-xxtea)[miladrahimi/phpcrypt

Encryption, decryption, and hashing tools for PHP projects

3171.5k2](/packages/miladrahimi-phpcrypt)[hemiframe/php-aes

PHP class for encrypt and decrypt data with AES algorithm

1030.3k](/packages/hemiframe-php-aes)

PHPackages © 2026

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