承接 psecio/pwdcheck 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

psecio/pwdcheck

Composer 安装命令:

composer require psecio/pwdcheck

包简介

A password complexity validator

README 文档

README

Packagist Version Build Status

The Pwdcheck tool uses the Wolfram Alpha method for estimating the strength of a password. It goes through a set of several checks to give the password a "score":

  • 0-60: Very Weak
  • 60-70: Weak
  • 70-80: Fair
  • 80-90: Strong
  • 90-100: Very Strong

Installation

You can use Composer to install Pwdcheck:

{
	"require": {
		"psecio/pwdcheck": "1.*"
	}
}

Usage

Usage of the tool is simple and you can either fetch the text version of the strength (ex. "Very Weak") or a numeric representation from zero through four:

<?php
require_once 'vendor/autoload.php';

$p = new \Psecio\Pwdcheck\Password();
$p->evaluate($password);

// getting the numeric representation:
echo 'Strength: '.$p->getStrength()."\n";

// getting the text version:
echo 'Strength: '.$p->getStrength(true)."\n";

// you can also get the raw score either as a return value or using getScore
$result = $p->evaluate($password);
echo 'Score: '.$result."\n"

echo 'Score: '.$p->getScore()."\n";

统计信息

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

GitHub 信息

  • Stars: 21
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-01-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固