Drupal is a registered trademark of Dries Buytaert
Release: Trash 3.0.31 Minor update available for module trash (3.0.31). Release: Editoria11y Accessibility Checker 3.0.8 Minor update available for module editoria11y (3.0.8). Usage Milestone: jQuery UI TouchPunch Module jquery_ui_touch_punch crossed 1,000 active installs. Release: UI Icons 2.0.0 Major update available for module ui_icons (2.0.0). Release: FlowDrop 2.0.0 Major update available for module flowdrop (2.0.0). Release: Smartling Connector for Drupal 8.x-9.26 Minor update available for module tmgmt_smartling (8.x-9.26). Release: Project Browser Localizer 3.0.6 Minor update available for module pb_localizer (3.0.6). Release: FileGate 1.6.1 Minor update available for module file_gate (1.6.1). Module Revived: MaxLength 3.2.0 Module maxlength updated after 11 months of inactivity (3.2.0). Usage Milestone: Forum Module forum crossed 10,000 active installs.

This module prevents users from selecting passwords that have been previously exposed in data breaches. It uses an API that checks password hashes anonymously to ensure user privacy.

This module uses the Have I Been Pwned - HIBP "Passwords" API v2 to validate passwords entered by a user.

Currently it prevents the user to select any password present in the database, more options will come.

Why this module?

As Troy Hunt explains in this article, it's a good idea to prevent people using already publicly known passwords. In fact it's not only him, but also NIST has a special publication on the topic "Digital Identity Guidelines", in which they clearly stating that you shouldn't be allowing people to use a password that's been breached before, among other types of passwords they shouldn't be using.

This module will do exactly that, prevent users from compromising themselves (and your website) by choosing a known password.

Anonymity

I was skeptical about Troy's service on Version 1, because even if you sent the sha1 hash and not the plain text password, you were still sending the complete information about it.
Now version 2 of the API is out and uses an implementation of k-anonymity, which allows to retain the secrecy of your password, even the hashed one. In fact only 5 characters of the whole hash are sent to the service, from which it's basically impossible to discover the original plaintext password, not even get close to it.
In the light of this new service I decided to bring this to Drupal to help spread the adoption and even more help our users to chose better/safer passwords.
You can read more about this service and k-anonymity in Troy's blog post and the more technical one on Cloudflare blog.

Activity

Tracked releases
3
Tracked since
Aug 2026
Latest release
5 hours ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
8.x-1.4 Stable Aug 3, 2026
2.0.0-beta1 Pre-release Aug 3, 2026
2.0.x-dev Dev Aug 3, 2026