PHPackages                             letnn/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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. letnn/crypt

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

letnn/crypt
===========

基于Jwt的字符串加密与解密

1.0(3y ago)0611MITPHPPHP &gt;=7.1

Since Mar 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/letnn/crypt)[ Packagist](https://packagist.org/packages/letnn/crypt)[ Docs](https://github.com/letnn/crypt)[ RSS](/packages/letnn-crypt/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (1)

Jwt crypt
=========

[](#jwt-crypt)

基于Jwt的字符串加密与解密

开始使用
====

[](#开始使用)

#### 安装

[](#安装)

使用 composer 命令进行安装或下载源代码使用。

```
composer require letnn/crypt

```

#### 调用

[](#调用)

```
// 加密
$password = \letnn\Crypt::Encode("123456", "key");

// 解密
print \letnn\Crypt::Decode($password, "key");
```

#### 签名算法

[](#签名算法)

```
支持 HS256 HS384 HS512 RS256 RS384 RS512

默认 HS256

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

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

Unknown

Total

1

Last Release

1217d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eb3409a00853868343f6231592d0f243892c38fa91c73c9b20b696ca8c5d8fa3?d=identicon)[letnn](/maintainers/letnn)

---

Top Contributors

[![letnn](https://avatars.githubusercontent.com/u/122198198?v=4)](https://github.com/letnn "letnn (13 commits)")

---

Tags

jwtcryptletnn

### Embed Badge

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

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

###  Alternatives

[firebase/php-jwt

A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.

10.0k478.8M2.7k](/packages/firebase-php-jwt)[lcobucci/jwt

A simple library to work with JSON Web Token and JSON Web Signature

7.6k338.7M1.1k](/packages/lcobucci-jwt)[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.7k51.8M372](/packages/tymon-jwt-auth)[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k103.2M104](/packages/namshi-jose)[web-token/jwt-framework

JSON Object Signing and Encryption library for PHP and Symfony Bundle.

95220.7M103](/packages/web-token-jwt-framework)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

84611.1M63](/packages/php-open-source-saver-jwt-auth)

PHPackages © 2026

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