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 1w 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

15

—

LowBetter than 3% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

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

[phpids/phpids

PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application

791150.0k2](/packages/phpids-phpids)[paragonie/ecc

PHP Elliptic Curve Cryptography library

25866.3k44](/packages/paragonie-ecc)[nicobleiler/php-passphrase

Passphrase generator with Laravel integration, inspired by Bitwarden. Uses the EFF long word list by default with support for custom wordlists.

4912.6k](/packages/nicobleiler-php-passphrase)[dwgebler/encryption

Encryption wrapper for PHP using libsodium — simple API for symmetric and asymmetric encryption, password hashing, digital signing, and message authentication.

317.5k](/packages/dwgebler-encryption)

PHPackages © 2026

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