Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

devise-pwned_password

> 编程语言
Open source

Devise extension that checks user passwords against the PwnedPasswords dataset

161 stars0 likes1 views
WebsiteGitHub

About

Devise extension that checks user passwords against the PwnedPasswords dataset

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 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Ruby

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

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