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

15

—

LowBetter than 3% of packages

Maintenance31

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://www.gravatar.com/avatar/a0218fc896fe52e0d04873517c4b208ad1542deeaa0e51f98e3f42c80a83cf29?d=identicon)[faj1](/maintainers/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

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41478.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

87117.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[paragonie/hidden-string

Encapsulate strings in an object to hide them from stack traces

7410.6M39](/packages/paragonie-hidden-string)

PHPackages © 2026

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