tp5er/think-hashing

The thinkphp Hashing package.

Maintainers

Package info

github.com/pkg6/think-hashing

pkg:composer/tp5er/think-hashing

Statistics

Installs: 145

Dependents: 1

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.0 2024-05-08 09:59 UTC

This package is auto-updated.

Last update: 2026-03-11 07:42:58 UTC


README

The thinkphp Hashing package.

安装

composer require tp5er/think-hashing

使用

use tp5er\think\hashing\facade\Hash;

//加密
$hashedValue= Hash::make("123456");
//验证密码是否有效
$check = Hash::check("123456",$hashedValue);

//加密
$hashedValue = hash_make("123456");
//验证密码是否有效
hash_check("123456",$hashedValue);