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

ActiveLibrary[Security](/categories/security)

firecms-ext/crypt
=================

hyperf 扩展：字符串加密和机密

0155PHP

Since Sep 2Pushed 3y agoCompare

[ Source](https://github.com/firecms-ext/crypt)[ Packagist](https://packagist.org/packages/firecms-ext/crypt)[ RSS](/packages/firecms-ext-crypt/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

firecms-ext/crypt
=================

[](#firecms-extcrypt)

```
# 添加依赖
composer require firecms-ext/crypt

# 发布配置
php bin/hyperf.php vendor:publish firecms-ext/crypt

# 生成密钥
php bin/hyperf.php gen:app-key
```

函数列表
====

[](#函数列表)

```
# 加密
function encrypt(mixed $value, bool $serialize = true): string

# 解密
function decrypt(string $payload, bool $unserialize = true): mixed

# 加密字符串
function encryptString(mixed $value): string

# 解密字符串
function decryptString(string $payload): string
```

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity25

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/4a621d9d09087893e4f566f3101143490a234cd75234d3a34f7c8069c280f370?d=identicon)[WenKaiYang](/maintainers/WenKaiYang)

---

Top Contributors

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

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/firecms-ext-crypt/health.svg)](https://phpackages.com/packages/firecms-ext-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.0k37](/packages/paragonie-ecc)

PHPackages © 2026

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