PHPackages                             blackplatinum/encryption - 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. blackplatinum/encryption

ActiveLibrary[Security](/categories/security)

blackplatinum/encryption
========================

The BlackPlatinum encryption component.

v1.0.0(5y ago)441MITPHPPHP ^7.3 || ^8.0

Since Dec 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/BlackPlatinum/encryption)[ Packagist](https://packagist.org/packages/blackplatinum/encryption)[ RSS](/packages/blackplatinum-encryption/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

BlackPlatinum Encryption Component
==================================

[](#blackplatinum-encryption-component)

Features
--------

[](#features)

Cryptography supports: AES-128-CBC, AES-192, AES-256-CBC, CAST5-CBC, BlowFish-CBC

console app
-----------

[](#console-app)

A command line interface designed for this component due to set a encryption key, test system etc.

Some of commands:

- \[php guard key:set\]
- \[php guard key:generate\]
- \[php guard fresh\]

`How to use console app?`

For using console app just open up a terminal where `guard` is and type: `php guard`. All commands are documented and operational.

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

[](#installation)

Use \[Composer\] to install the package:

```
$ composer require blackplatinum/encryption

```

Examples
--------

[](#examples)

```
use BlackPlatinum\Encryption\Crypto\Symmetric\Crypto;
use BlackPlatinum\Encryption\KeyManager\KeyManager;

$cipher = (new Crypto('CAST5-CBC'))->setKey(KeyManager::getKey())->encrypt(
    [
        'Name' => 'John',
        'LastName' => 'LastName',
        'Age' => 22,
        'IsStudent' => true,
        'Courses' => ['Math', 'Economy', 'Chemistry']
    ]
);
print $cipher;

$plainText = (new Crypto('BF-CBC'))->setKey(KeyManager::getKey())->decrypt('eyJpdiI6Ik05RE9...');
print_r($plainText);

use BlackPlatinum\Encryption\Crypto\Asymmetric\Crypto;
$crypto = new Crypto();

$cipher = $crypto->publicKeyEncrypt(
    [
        'Name' => 'John',
        'LastName' => 'LastName',
        'Age' => 22,
        'IsStudent' => true,
        'Courses' => ['Math', 'Economy', 'Chemistry']
    ], KeyManager::getRSAPublicKey()
);
print $cipher . "\n";

print_r($crypto->privateKeyDecrypt($cipher, KeyManager::getRSAPrivateKey()));
```

### Classes and Methods description

[](#classes-and-methods-description)

All of classes and methods have documentation, you can read them and figure out how they work

Authors
-------

[](#authors)

- \[BlackPlatinum Developers\]
- E-Mail: \[\]

License
-------

[](#license)

All contents of this component are licensed under the \[MIT license\].

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

2009d ago

### Community

Maintainers

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

---

Top Contributors

[![Baha2rM98](https://avatars.githubusercontent.com/u/49520007?v=4)](https://github.com/Baha2rM98 "Baha2rM98 (335 commits)")

---

Tags

securityencryptioncipherMACdecryption

### Embed Badge

![Health badge](/badges/blackplatinum-encryption/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[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

961.0M2](/packages/nzo-url-encryptor-bundle)[al-saloul/encryption

Simple number encryption and decryption package

191.1k](/packages/al-saloul-encryption)

PHPackages © 2026

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