承接 universiterennes2/standfordlikepasswordpolicy 相关项目开发

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

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

universiterennes2/standfordlikepasswordpolicy

Composer 安装命令:

composer require universiterennes2/standfordlikepasswordpolicy

包简介

Standford's like password policy checker, homepage support

README 文档

README

Standford's like password policy : PHP implementation

Latest Stable Version REUSE compliant Minimum PHP Version Unit tests Coverage Status License

This library implements a checker for Standford's password policy in PHP with only one minor change :

  • The minimal password's length is 9 (instead of 8 in the original policy)

The Standford password policy is a length-based password policy : increase password length = decrease constraints.

  • 9-11 character passwords require the use of upper and lower case, numerical and special characters.
  • 12-15 character passwords require the use of upper and lower case and numerical characters.
  • 16-19 character passwords require upper and lower case characters
  • 20+ characters require any characters.

Table of Contents

Install

composer require universiterennes2/standfordlikepasswordpolicy

Usage

<?php
require_once __DIR__ . "/vendor/autoload.php";

use UniversiteRennes2\StandfordLikePasswordPolicy\StandfordLikePasswordPolicy;

$passwordPolicy = new StandfordLikePasswordPolicy();

$password = 'not compliant';

if ( $passwordPolicy->isCompliant($password) ) {
    // Compliant password
    echo "Compliant\n";
} else {
    // Not compliant !
    echo "Not compliant\n";
}

See a more complete example in examples/ directory.

Contribute

See CONTRIBUTING.md

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License v3.0 or later as published by the Free Software Foundation.

The program in this repository meet the requirements to be REUSE compliant, meaning its license and copyright is expressed in such as way so that it can be read by both humans and computers alike.

For more information, see https://reuse.software/

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2022-06-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固