PHPackages                             lgdz/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. lgdz/rsa

ActiveLibrary

lgdz/rsa
========

非对称加密解密

1.0.3(6y ago)1671MITPHPPHP &gt;=7.0

Since Apr 15Pushed 6y ago3 watchersCompare

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

READMEChangelog (3)DependenciesVersions (4)Used By (1)

rsa
===

[](#rsa)

rsa加密解密

### 生成RSA私钥

[](#生成rsa私钥)

```
# openssl genrsa -out rsa_private.pem 1024

```

### 生成RSA公钥

[](#生成rsa公钥)

```
# openssl rsa -in rsa_private.pem -out rsa_public.pem -pubout

```

```
### 私钥加密 ###
privateEncrypt

### 公钥解密 ###
publicDecrypt

```

```
### 公钥加密 ###
publicEncrypt

### 私钥解密 ###
privateDecrypt

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

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 ~67 days

Total

3

Last Release

2447d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1cd107e9c48272560acfe6f7d94063f6f24081f394b9ad49475a0221ad724717?d=identicon)[xingchenfeng](/maintainers/xingchenfeng)

---

Top Contributors

[![lgdzz](https://avatars.githubusercontent.com/u/12145761?v=4)](https://github.com/lgdzz "lgdzz (9 commits)")

### Embed Badge

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

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

PHPackages © 2026

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