PHPackages                             xj/php-rsa - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. xj/php-rsa

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

xj/php-rsa
==========

php-rsa

1.0.0(10y ago)184BSD-3-ClausePHP

Since Jul 17Pushed 10y ago1 watchersCompare

[ Source](https://github.com/xjflyttp/php-rsa)[ Packagist](https://packagist.org/packages/xj/php-rsa)[ RSS](/packages/xj-php-rsa/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

php-rsa
=======

[](#php-rsa)

composer.json
-------------

[](#composerjson)

```
"require": {
    "xj/php-rsa": "*"
},
```

Rsa
---

[](#rsa)

```
openssl genrsa -out rsa_private_key.pem 2048
openssl rsa -in rsa_private_key.pem -pubout -out rsa_public_key.pem

```

example:
--------

[](#example)

```
use xj\phprsa\RsaPrivate;
use xj\phprsa\RsaPublic;

        $privateKey =  private decrypt
        $publicEncryptString = RsaPublic::model($publicKey)->encrypt($str);
        $privateDecryptString = RsaPrivate::model($privateKey)->decrypt($publicEncryptString);
        var_dump('public', $str, $publicEncryptString, $privateDecryptString);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

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

3959d ago

### Community

Maintainers

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

---

Top Contributors

[![xjflyttp](https://avatars.githubusercontent.com/u/128428?v=4)](https://github.com/xjflyttp "xjflyttp (5 commits)")

### Embed Badge

![Health badge](/badges/xj-php-rsa/health.svg)

```
[![Health](https://phpackages.com/badges/xj-php-rsa/health.svg)](https://phpackages.com/packages/xj-php-rsa)
```

###  Alternatives

[h5p/h5p-core

H5P Core functionality in PHP

1401.5M32](/packages/h5p-h5p-core)

PHPackages © 2026

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