定制 samuelpouzet/crypt 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

samuelpouzet/crypt

最新稳定版本:1.0.1

Composer 安装命令:

composer require samuelpouzet/crypt

包简介

Password crypter

README 文档

README

The goal of this module is to create a simple password encryption and verification system.
This module works with two types of algorithms: Bcrypt (default) and ARGON2I/ARGON2ID.

Bcrypt

The Bcrypt algorithm is a hashing algorithm that is widely used and recommended by the security community to store user passwords in a secure way

Bcrypt truncates Input > 72 bytes

The input string of the bcrypt algorithm is limited to 72 bytes. If you use a string with a length more than this limit, bcrypt will consider only the first 72 bytes.

We use a class SamuelPouzet\Crypt\Crypt

Constructor :

$crypt = new Crypt(iterable $options = [], string $algorithm =PASSWORD_DEFAULT)

options :

Bcrypt : cost (number between 4 and 31)

Argon : memory_cost(number), time_cost (number), threads (number)`

**Encode :**

$crypt->hash(string $plaintext): string

**Verify**

$crypt->verify(string $password, string $hash): bool

统计信息

  • 总下载量: 21
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2025-03-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固