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(8mo ago)015MITPHPPHP &gt;=7.4

Since Oct 6Pushed 8mo 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 2w 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

29

—

LowBetter than 57% of packages

Maintenance59

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

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

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.0M134](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24772.0k35](/packages/paragonie-ecc)[fof/recaptcha

Increase your forum's security with Google reCAPTCHA

1436.9k](/packages/fof-recaptcha)

PHPackages © 2026

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