PHPackages                             salliyme/security - 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. salliyme/security

ActiveLibrary[Security](/categories/security)

salliyme/security
=================

Security with RSA Encrypt

v1.0(4y ago)14[1 PRs](https://github.com/salliyme/security/pulls)MITPHPPHP ^7.3||^8.0

Since Sep 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/salliyme/security)[ Packagist](https://packagist.org/packages/salliyme/security)[ Docs](https://github.com/salliyme/security)[ RSS](/packages/salliyme-security/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (4)Used By (0)

Security
========

[](#security)

*By \[salliyme\]*

This library helps you generate RSA cert and encrypt and decrypt simply.

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

[](#installation)

Use [Composer](https://getcomposer.org/) to install the library.

```
$ composer require salliyme/security
```

Basic usage
-----------

[](#basic-usage)

```
use salliyme\security\Encrypt;

$instance = new Encrypt();
$instance->generateKey();
$instance->init();
$plainData = "This is a test Encrypt Encrypt and Decrypt Methods.";
$enc = $instance->private_encrypt($plainData);
$dec = $instance->public_decrypt($enc);
echo "Text:", $dec, PHP_EOL;
$plainText = "This data to test Encrypt public Encrypt and private Decrypt.";
$enc1 = $instance->public_encrypt($plainText);
$dec1 = $instance->private_decrypt($enc1);
echo "Text2:", $dec1, PHP_EOL;
```

License
-------

[](#license)

This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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

Every ~0 days

Total

2

Last Release

1693d ago

Major Versions

v0.9 → v1.02021-09-28

### Community

Maintainers

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

---

Top Contributors

[![salliyme](https://avatars.githubusercontent.com/u/9624996?v=4)](https://github.com/salliyme "salliyme (2 commits)")

---

Tags

phpsecurityrsaencrypt

### Embed Badge

![Health badge](/badges/salliyme-security/health.svg)

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

###  Alternatives

[asbiin/laravel-webauthn

Laravel Webauthn support

309574.8k](/packages/asbiin-laravel-webauthn)[miladrahimi/phpcrypt

Encryption, decryption, and hashing tools for PHP projects

3171.5k2](/packages/miladrahimi-phpcrypt)[poly-crypto/poly-crypto

High-level cryptographic functions that are interoperable between NodeJS and PHP 7.1+

127.8k1](/packages/poly-crypto-poly-crypto)[asymmetricrypt/asymmetricrypt

A simple PHP public key cryptography library

114.1k](/packages/asymmetricrypt-asymmetricrypt)

PHPackages © 2026

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