承接 yuloh/battery-staple 相关项目开发

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

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

yuloh/battery-staple

最新稳定版本:1.0

Composer 安装命令:

composer require yuloh/battery-staple

包简介

Generate XKCD inspired passwords

README 文档

README

A password generator, inspired by XKCD.

XKCD comic

Install

Via Composer

composer require yuloh/battery-staple

Usage

$password = Yuloh\BatteryStaple\PasswordGenerator::generate();
// returns something like "beefjapanesesealedunwrap"

Security

The library is 8 lines of code, so there isn't much that can go wrong. Here is what happens:

  • A word list of 10,000 words is loaded.
  • A random number is generated with random_int and the word on that line is used.
  • Repeat the above until you have 4 words.

That being said, I am not a security expert. I cannot guarantee that this library is cryptographically secure and you shouldn't use it for anything important.

Contributing

Contributions Welcome. Some ideas:

  • Allow choosing a delimiter
  • Set min/max word length, so you don't get words like 'the'
  • Case transformation options (using neko?)

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-08-17