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(4y ago)036MITPHPPHP &gt;=7.4

Since Jul 8Pushed 4y 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 today

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 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Recently: every ~8 days

Total

14

Last Release

1732d 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

[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)[illuminate/encryption

The Illuminate Encryption package.

9229.7M278](/packages/illuminate-encryption)

PHPackages © 2026

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