PHPackages                             orz14/crypt-php - 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. orz14/crypt-php

ActiveLibrary[Security](/categories/security)

orz14/crypt-php
===============

Simple AES-256-CBC encryption and decryption class for PHP.

v1.0.0(10mo ago)016MITPHPPHP &gt;=7.4

Since Oct 6Pushed 10mo agoCompare

[ Source](https://github.com/orz14/crypt-php)[ Packagist](https://packagist.org/packages/orz14/crypt-php)[ Docs](https://github.com/orz14/crypt-php)[ RSS](/packages/orz14-crypt-php/feed)WikiDiscussions main Synced 4w ago

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

Crypt PHP
=========

[](#crypt-php)

Simple AES-256-CBC encryption and decryption class for PHP.

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

[](#installation)

You can install the package via [Composer](https://getcomposer.org).

```
composer require orz14/crypt-php
```

Usage
-----

[](#usage)

Make sure the `CROSS_ENCRYPTION_KEY` environment variable is set and contains a base64-encoded key (32 bytes before encoding).

```
# generate key example
php -r "echo base64_encode(random_bytes(32)) . PHP_EOL;"
```

```
use Orz14\Crypt;

// Encryption
$cipher = Crypt::encrypt('hello world');
echo $cipher; // D5kvEf5S4MAKdLNcTbZdWkMGmI34vQt+LOdP4iU7C+w=

// Decryption
$plain = Crypt::decrypt($cipher);
echo $plain; // hello world
```

Changelog
---------

[](#changelog)

Please see [the GitHub "Releases" page](https://github.com/orz14/crypt-php/releases) for more information on what has changed recently.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance54

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

305d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

aes-256-cbcdecryptionencryptionlaravelphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/orz14-crypt-php/health.svg)

```
[![Health](https://phpackages.com/badges/orz14-crypt-php/health.svg)](https://phpackages.com/packages/orz14-crypt-php)
```

###  Alternatives

[paragonie/ecc

PHP Elliptic Curve Cryptography library

25866.3k42](/packages/paragonie-ecc)[sansec/magento2-module-shield

15218.6k](/packages/sansec-magento2-module-shield)[dwgebler/encryption

Encryption wrapper for PHP using libsodium — simple API for symmetric and asymmetric encryption, password hashing, digital signing, and message authentication.

317.5k](/packages/dwgebler-encryption)

PHPackages © 2026

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