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(3mo ago)3761PHPPHP &gt;=7.2CI failing

Since Jan 23Pushed 3mo ago1 watchersCompare

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

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

44

—

FairBetter than 92% of packages

Maintenance80

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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

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

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

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

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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