PHPackages                             lijinhua/tp-hash - 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. lijinhua/tp-hash

ActiveLibrary[Security](/categories/security)

lijinhua/tp-hash
================

适用于tp6的hash加密

v1.0.13(5y ago)036MITPHPPHP &gt;=7.4

Since Jul 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/lijinhua1993/tp-hash)[ Packagist](https://packagist.org/packages/lijinhua/tp-hash)[ RSS](/packages/lijinhua-tp-hash/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (15)Used By (0)

TP-Hash

[](#tp-hash)

 thinkphp6的hash加密功能

环境要求
----

[](#环境要求)

1. php &gt;= 7.4
2. thinkphp ^6.0.0

说明
--

[](#说明)

> 目前支持的密方式：bcrypt(默认)

安装
--

[](#安装)

```
$ composer require lijinhua/tp-hash
```

第二步:

```
$ php think hash:config
```

此举将生成配置文件(hashing.php\])。

使用方式
----

[](#使用方式)

示例：

```
use lijinhua\hash\facade\Hash;

$password = 'admin123';
// 密码加密
$passwordHash =  Hash::create($password);
// dump($passwordHash);

// 密码验证
if (Hash::check($password,$passwordHash)) {
    echo 'true';
}else{
    echo 'false';
}
```

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Recently: every ~8 days

Total

14

Last Release

1833d ago

### Community

Maintainers

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

---

Top Contributors

[![lijinhua1993](https://avatars.githubusercontent.com/u/36188950?v=4)](https://github.com/lijinhua1993 "lijinhua1993 (11 commits)")

### Embed Badge

![Health badge](/badges/lijinhua-tp-hash/health.svg)

```
[![Health](https://phpackages.com/badges/lijinhua-tp-hash/health.svg)](https://phpackages.com/packages/lijinhua-tp-hash)
```

###  Alternatives

[zoujingli/think-library

Core library and common services for ThinkAdmin

8374.7k20](/packages/zoujingli-think-library)[topthink/think-throttle

throttle middleware for thinkphp8

186107.1k2](/packages/topthink-think-throttle)[ichynul/tpextmyadmin

thinkphp extension

141.6k](/packages/ichynul-tpextmyadmin)

PHPackages © 2026

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