承接 mikehall314/stupid-password 相关项目开发

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

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

mikehall314/stupid-password

Composer 安装命令:

composer require mikehall314/stupid-password

包简介

A library to check if your password appears in the top 10,000 most used passwords

README 文档

README

This is a very simple library which lets you know if a password a user has chosen is stupid. The definition of "stupid" in this case, is that it appears as one of the top 10,000 most common passwords in the world.

The passwords were compiled from various data breaches.

How to use it

use Stupid\Password;

// Returns a boolean
$passwordIsStupid = Password::isStupid($password);

How it works

The library maintains an internal list of SHA1 hashes of the top 10,000 passwords. When a password is tested, it is SHA'd and then checked against the password list.

SHA1? Isn't that like, hella broken?

For cryptographic purposes, yes, but this isn't about cryptography. SHA1 is nice and fast, and means we can quickly check if the password is on the list without having to actually include a load of passwords in this lib.

I can just reverse the passwords from the SHAs though

Go crazy. The list is on GitHub anyway.

Doesn't it go out of date

Sure. I'll update it from time-to-time. The last update was 7 November 2024.

License

MIT.

Author

Mike Hall (@mikehall314.bsky.social)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固