kieranajp/password-generator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

kieranajp/password-generator

最新稳定版本:v2.0.1

Composer 安装命令:

composer require kieranajp/password-generator

包简介

Generates human-readable, but secure, passwords.

README 文档

README

codecov

A teeny library to generate memorable yet secure passwords.

Why?

  • Existing password managers didn't suit the needs I had for this project, or required you to source your own external wordlist
  • I've hacked Faker into a password generator for typeable passwords
    • The project I'm using this in requires secure, generated passwords that are easy to type

Installation

Requires PHP 7.0+. Install with Composer.

$ composer require kieranajp/password-generator

If you require PHP 5.3 - 5.6 support, install v1.

Example usage

To quickly try this out, you can run php example.php. This file contains the basic usage.

require 'vendor/autoload.php';
$g = new \Kieranajp\Generator\Generator();
$g->generate(); // [ "Reagan467$Lera^" ]
$g->generate(2); // [ "Christina835$Frami$", "Terrance103:Evie." ]

By default, passwords are of the following format: word - number - symbol - word - symbol. This can easily be changed as follows:

$g->setFormat("word:num:symbol")

The default list of symbols is easy to type by a less-savvy computer user on a standard QWERTY keyboard. Other symbols can be added with $g->addSymbol('🤡') and removed with $g->removeSymbol('🤡').

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-21