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

ActiveLibrary[Security](/categories/security)

dh2y/think-crypt
================

crypt for thinkphp5

1.2(8y ago)3496↓100%2MITPHPPHP &gt;=5.4.0

Since Apr 27Pushed 8y ago2 watchersCompare

[ Source](https://github.com/cinaofdai/think-crypt)[ Packagist](https://packagist.org/packages/dh2y/think-crypt)[ RSS](/packages/dh2y-think-crypt/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

think-crypt
===========

[](#think-crypt)

The ThinkPHP5 crypt

安装
--

[](#安装)

### 一、执行命令安装

[](#一执行命令安装)

```
composer require dh2y/think-crypt

```

或者

### 二、require安装

[](#二require安装)

```
"require": {
        "dh2y/think-crypt":"*"
},

```

或者

### 三、autoload psr-4标准安装

[](#三autoload-psr-4标准安装)

```
   a) 进入vendor/dh2y目录 (没有dh2y目录 mkdir dh2y)
   b) git clone
   c) 修改 git clone下来的项目名称为think-crypt
   d) 添加下面配置
   "autoload": {
        "psr-4": {
            "think\\crypt\\": "vendor/dh2y/think-crypt/src"
        }
    },
    e) php composer.phar update

```

使用
--

[](#使用)

此扩展是tp3.2 直接拿过来的，tp5框架不内带相关加密类 具体使用方法参考tp3.2

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

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

Unknown

Total

1

Last Release

2934d ago

### Community

Maintainers

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

---

Top Contributors

[![cinaofdai](https://avatars.githubusercontent.com/u/20353921?v=4)](https://github.com/cinaofdai "cinaofdai (5 commits)")

### Embed Badge

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

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M212](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

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

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

A PHP library for XML Security

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

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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