百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

devise-pwned_password

> 编程语言
开源

开发扩展,用于将用户密码与 PwnedPasswords 数据集进行比对

161 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

开发扩展,用于将用户密码与 PwnedPasswords 数据集进行比对

Devise::PwnedPassword

Devise extension that checks user passwords against the PwnedPasswords dataset (https://haveibeenpwned.com/Passwords).

Checks for compromised ("pwned") passwords in 2 different places/ways:

  1. As a standard model validation using pwned. This:
    • prevents new users from being created (signing up) with a compromised password
    • prevents existing users from changing their password to a password that is known to be compromised
  2. (Optionally) Whenever a user signs in, checks if their current password is compromised and shows a warning if it is.

Based on devise-uncommon_password.

Recently the HaveIBeenPwned API has moved to an authenticated/paid model, but this does not affect the PwnedPasswords API; no payment or authentication is required.

Usage

Add the :pwned_password module to your existing Devise model.

ruby
class AdminUser  4.0" devise-pwned-test

Releasing

To release a new version:

bash
# 1. Update version in lib/devise/pwned_password/version.rb
# 2. Commit the change
git add -A && git commit -m "Bump version to 0.2.1"
# 3. Create and push a tag
git tag v0.2.1
git push origin master --tags

The gem will be automatically published to RubyGems and GitHub Package Registry when the tag is pushed.

License

The gem is available as open source under the terms of the MIT License.

Issues· 10 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言