PHPackages                             zaphyr-org/encrypt - 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. zaphyr-org/encrypt

ActiveLibrary[Security](/categories/security)

zaphyr-org/encrypt
==================

A convenient interface for encrypting and decrypting text via OpenSSL using AES-128 and AES-256 encryption.

2.0.1(2y ago)23.6k↓61.9%12MITPHPPHP &gt;=8.1CI passing

Since Jul 19Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/zaphyr-org/encrypt)[ Packagist](https://packagist.org/packages/zaphyr-org/encrypt)[ RSS](/packages/zaphyr-org-encrypt/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (4)Versions (6)Used By (2)

[![License](https://camo.githubusercontent.com/28142cff616cef9dfec2680ae63c68b3af42bdf6f72e1e462c4128572c5f6103/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7a61706879722d6f72672f656e6372797074)](https://camo.githubusercontent.com/28142cff616cef9dfec2680ae63c68b3af42bdf6f72e1e462c4128572c5f6103/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7a61706879722d6f72672f656e6372797074)[![Version](https://camo.githubusercontent.com/9ca1557cf974f8e28525b8e8d2585afef427b809158e1d0539f29729ac423f96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a61706879722d6f72672f656e6372797074)](https://camo.githubusercontent.com/9ca1557cf974f8e28525b8e8d2585afef427b809158e1d0539f29729ac423f96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a61706879722d6f72672f656e6372797074)[![Issues](https://camo.githubusercontent.com/3af739fa7a34c95694a7c97233d5f719c3965ba3d1601bce9f8c62fc868b7261/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7a61706879722d6f72672f656e6372797074)](https://camo.githubusercontent.com/3af739fa7a34c95694a7c97233d5f719c3965ba3d1601bce9f8c62fc868b7261/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7a61706879722d6f72672f656e6372797074)[![Tests](https://github.com/zaphyr-org/encrypt/actions/workflows/tests.yml/badge.svg)](https://github.com/zaphyr-org/encrypt/actions/workflows/tests.yml/badge.svg)[![Codecov](https://camo.githubusercontent.com/0e9867a5b0045da8a2442b7eed09714069437ed5995828c42e6435b3ec6099ca/68747470733a2f2f636f6465636f762e696f2f67682f7a61706879722d6f72672f656e63727970742f67726170682f62616467652e7376673f746f6b656e3d3253545034304b433731)](https://codecov.io/gh/zaphyr-org/encrypt)

ENCRYPT
=======

[](#encrypt)

A convenient interface for encrypting and decrypting text via OpenSSL using AES-128 and AES-256 encryption.

System Requirements
-------------------

[](#system-requirements)

You need `PHP => 8.1` but the latest stable version of PHP is recommended.

This package is continuously tested on the following PHP versions:

- PHP 8.1
- PHP 8.2
- PHP 8.3
- PHP 8.4
- PHP 8.5

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

[](#installation)

It's recommended that you use [Composer](https://getcomposer.org/) to install the encrypt repository.

```
composer require zaphyr-org/encrypt
```

Documentation
-------------

[](#documentation)

You can read the full documentation [here](https://zaphyr.org/docs/repositories/latest/encrypt).

Issues
------

[](#issues)

Bug reports and feature requests can be submitted on the [GitHub Issue Tracker](https://github.com/zaphyr-org/encrypt/issues).

Security
--------

[](#security)

If you discover security related issues, please email  **instead of using the issue tracker!**

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://zaphyr.org/contributions) for details.

Code of Conduct
---------------

[](#code-of-conduct)

Please see [CODE OF CONDUCT](https://zaphyr.org/contributions#code-of-conduct) for details.

License
-------

[](#license)

This project is licensed under the MIT license. See [LICENSE](LICENSE.md) for more information.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance49

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 94.7% 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 ~122 days

Total

5

Last Release

957d ago

Major Versions

1.x-dev → 2.0.02023-04-05

PHP version history (2 changes)1.0.0PHP &gt;=7.2

2.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/25499f6685a498dbadd9b45769a40dc4c792434b54f4d434ce44a432f0b18741?d=identicon)[merloxx](/maintainers/merloxx)

---

Top Contributors

[![merloxx](https://avatars.githubusercontent.com/u/12734661?v=4)](https://github.com/merloxx "merloxx (18 commits)")[![ruyasui](https://avatars.githubusercontent.com/u/109213921?v=4)](https://github.com/ruyasui "ruyasui (1 commits)")

---

Tags

aes-128-cbcaes-256decryptionencryptionencryption-decryptionopensslphpsecurityencryptopensll

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/zaphyr-org-encrypt/health.svg)

```
[![Health](https://phpackages.com/badges/zaphyr-org-encrypt/health.svg)](https://phpackages.com/packages/zaphyr-org-encrypt)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k175.2M253](/packages/defuse-php-encryption)[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k465.6M1.5k](/packages/phpseclib-phpseclib)[robrichards/xmlseclibs

A PHP library for XML Security

41484.3M150](/packages/robrichards-xmlseclibs)[spatie/laravel-csp

Add CSP headers to the responses of a Laravel app

86611.1M25](/packages/spatie-laravel-csp)[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

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

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

11343.0k](/packages/xxtea-xxtea)

PHPackages © 2026

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