PHPackages                             raph6/enkryptor - 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. raph6/enkryptor

ActiveLibrary[Security](/categories/security)

raph6/enkryptor
===============

Encryption module based on openssl

v1.0.7(6mo ago)3763PHPPHP &gt;=7.2CI failing

Since Jan 23Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/raph6/enkryptor)[ Packagist](https://packagist.org/packages/raph6/enkryptor)[ RSS](/packages/raph6-enkryptor/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (1)Versions (9)Used By (0)

Enkryptor
=========

[](#enkryptor)

composer package for encryption using openssl

### Installation

[](#installation)

```
composer require raph6/enkryptor
```

### How to use

[](#how-to-use)

```
use raph6\Enkryptor\Enkryptor;

# encryption
$encrypted = Enkryptor::encrypt('string to encrypt', 'password');
var_dump($encrypted);

# decryption
$decrypted = Enkryptor::decrypt($encrypted, 'password');
var_dump($decrypted);
```

### Changing cipher method

[](#changing-cipher-method)

By default cipher is AES 256 CBC, you can change this by adding a 3rd parameters, for exemple :

```
$encrypted = Enkryptor::encrypt('test', 'password', 'des-ede3-cfb1');
var_dump($encrypted);

$decrypted = Enkryptor::decrypt($encrypted, 'password', 'des-ede3-cfb1');
var_dump($decrypted);
```

You can get available cipher methods by using

```
var_dump(Enkryptor::cipherList());
```

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance66

Regular maintenance activity

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.8% 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 ~314 days

Recently: every ~530 days

Total

8

Last Release

199d ago

PHP version history (2 changes)1.0.0PHP ^7.2

1.0.6PHP &gt;=7.2

### Community

Maintainers

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

---

Top Contributors

[![raph6](https://avatars.githubusercontent.com/u/1500128?v=4)](https://github.com/raph6 "raph6 (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

composerencryptionopensslphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/raph6-enkryptor/health.svg)

```
[![Health](https://phpackages.com/badges/raph6-enkryptor/health.svg)](https://phpackages.com/packages/raph6-enkryptor)
```

###  Alternatives

[phpids/phpids

PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application

791150.0k2](/packages/phpids-phpids)[paragonie/ecc

PHP Elliptic Curve Cryptography library

25866.3k44](/packages/paragonie-ecc)[nicobleiler/php-passphrase

Passphrase generator with Laravel integration, inspired by Bitwarden. Uses the EFF long word list by default with support for custom wordlists.

4912.6k](/packages/nicobleiler-php-passphrase)[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)
