PHPackages                             ledc/crypt - 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. ledc/crypt

ActiveLibrary[Security](/categories/security)

ledc/crypt
==========

加密解密、加签验签

v8.1.5(11mo ago)0571MITPHPPHP &gt;=8.2

Since Sep 27Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/ledccn/ledc-crypt)[ Packagist](https://packagist.org/packages/ledc/crypt)[ RSS](/packages/ledc-crypt/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (8)Used By (1)

加密解密、加签验签
=========

[](#加密解密加签验签)

安装
--

[](#安装)

`composer require ledc/crypt`

使用
--

[](#使用)

开箱即用，只需要传入一个配置，初始化一个实例即可：

```
use Ledc\Crypt;
$crypt = new AesCrypt($aesKey, 'aes-128-cbc', 'sha256', 30);
```

在创建实例后，所有的方法都可以有IDE自动补全；例如：

```
// 加密
$crypt->encrypt($data);

// 解密
$crypt->decrypt($payload, $signature);
```

捐赠
--

[](#捐赠)

[![reward](reward.png)](reward.png)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance52

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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

Recently: every ~76 days

Total

7

Last Release

339d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4af14254189bc74029cc40f4206f8006872b0cd092c680201f204a85a490f143?d=identicon)[ledccn](/maintainers/ledccn)

---

Top Contributors

[![ledccn](https://avatars.githubusercontent.com/u/53997080?v=4)](https://github.com/ledccn "ledccn (10 commits)")

### Embed Badge

![Health badge](/badges/ledc-crypt/health.svg)

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

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

PHPackages © 2026

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