PHPackages                             faj1/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. [Security](/categories/security)
4. /
5. faj1/rsa

ActiveLibrary[Security](/categories/security)

faj1/rsa
========

这是一个RSA加密和解密的库

05PHP

Since Dec 13Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

**一个利用RSA和AES进行混合加密的PHP库**

- 安装命令:
- ```
    composer require faj1/rsa

    ```
- 使用例子请参考测试文件

```
public function testCreateKeyExample()
    {
        $Tool = new Tool();
        $Data = $Tool->hybrid_encryption('HI,123456');
        var_dump($Data);
        echo '解密结果:'.$Tool->hybrid_decrypt($Data);
    }

```

- 对文本进行AES加密,再对AES密码进行RAS加密,返回加密后的文本和加密后的AES密码和IV
- 解密利用RAS解密AES的密码,再利用密码解密获取明文

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/150789582?v=4)[faj1](/maintainers/faj1)[@faj1](https://github.com/faj1)

---

Top Contributors

[![githabus](https://avatars.githubusercontent.com/u/10916592?v=4)](https://github.com/githabus "githabus (13 commits)")

### Embed Badge

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

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

###  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.0k37](/packages/paragonie-ecc)

PHPackages © 2026

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