定制 beeflow/passwd 二次开发

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

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

beeflow/passwd

Composer 安装命令:

composer require beeflow/passwd

包简介

Password generator and checker

README 文档

README

This class can generate or check passwords with certain rules.

It can generate a password based on rules that determine which characters it can contain.

Currently it can verify if the password contains a given number of lower case letters, upper case letters, digits, special characters and a minimum length.

The class can also take a given password and verify if it matches the requested rules and check a password strength.

Usage example

<?php

 use Beeflow\Passwd\Passwd;

 // I am changing default password policy
 $passwordPolicy = array('specialCharsCount' => 3, 'minimumPasswordLength' => 12);

 $password = new Passwd( $passwordPolicy );

 // checking password
 $isPasswordOk = $password->check('Th1$I$myPrd!');
 if (!$isPasswordOk) {
    echo "Your password is incorrect.<br/>";
 } else {
    echo "Your password is correct.<br/>";
 }

 // checking password strength
 $password->checkStrength('Th1$I$myPrd!', 'info');
 echo "Your password strength points: " . $password->getStrengthPoints()."<br/>";
 echo "Your password strength info: " . $password->getStrengthInfo()."<br/>";

 // generating new password
 echo "Your new password: " . $password->generate() ."<br/>";

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2016-04-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固