PHPackages                             abcarroll/hack3r3d-php-openssl-cryptor - 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. abcarroll/hack3r3d-php-openssl-cryptor

ActiveLibrary[Security](/categories/security)

abcarroll/hack3r3d-php-openssl-cryptor
======================================

Useful PHP library that makes encrypting data easier; Mirror of the hack3r3d/php-openssl-cryptor

13PHP

Since Dec 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/abcarroll/hack3r3d-php-openssl-cryptor)[ Packagist](https://packagist.org/packages/abcarroll/hack3r3d-php-openssl-cryptor)[ RSS](/packages/abcarroll-hack3r3d-php-openssl-cryptor/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

php-openssl-cryptor
===================

[](#php-openssl-cryptor)

Description
-----------

[](#description)

This is a fork of  git repo. This is the same code, but I rearranged it and made it into a composer package. I wanted to use it with my other composer code, and so it made sense to make this fork.

You can install this package using composer like this.

`composer require hack3r3d/php-openssl-cryptor`

The packagist for this library is located here.

Simple to use class for encrypting/decrypting using the PHP Openssl library.

The Cryptor class supports arbitrary encryption and key hashing algorithms, along with raw, base64 and hex encoding of the encrypted data. Static convenience methods are provided for the default of AES, but a cryptor instance can be used for more flexibility. The default uses aes-256-ctr to avoid the need for padding and the related issues. Unfortunately GCM cannot be used as the PHP openssl module does not provide a way to retrieve the GCM tag. This is proposed to be remedied in PHP 7.1 when associated data can be retrieved.

Example
-------

[](#example)

```
use Crypto\Cryptor;

$data = 'Good things come in small packages.';
$key = '9901:io=[602vV03&Whb>9J&M~Oq';

$encrypted = Cryptor::Encrypt($data, $key);

echo "'$data' (" . strlen($data) . ") => '$encrypted'\n\n";

$decrypted = Cryptor::Decrypt($encrypted, $key);

echo "'$encrypted' => '$decrypted' (" . strlen($decrypted) . ")\n";
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 71.4% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/13ac690f7dcc7b9e3f0bea11ac63032685475b78c7dcfeeaa69b6e64f1c0e5a7?d=identicon)[abcarroll](/maintainers/abcarroll)

---

Top Contributors

[![nickion](https://avatars.githubusercontent.com/u/19203867?v=4)](https://github.com/nickion "nickion (5 commits)")[![abcarroll](https://avatars.githubusercontent.com/u/961513?v=4)](https://github.com/abcarroll "abcarroll (1 commits)")[![NoMan2000](https://avatars.githubusercontent.com/u/812215?v=4)](https://github.com/NoMan2000 "NoMan2000 (1 commits)")

### Embed Badge

![Health badge](/badges/abcarroll-hack3r3d-php-openssl-cryptor/health.svg)

```
[![Health](https://phpackages.com/badges/abcarroll-hack3r3d-php-openssl-cryptor/health.svg)](https://phpackages.com/packages/abcarroll-hack3r3d-php-openssl-cryptor)
```

###  Alternatives

[mews/purifier

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

2.0k18.7M143](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k38](/packages/paragonie-ecc)

PHPackages © 2026

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