This project is not covered by Drupal’s security advisory policy.

PQ Login replaces password authentication in Drupal with post-quantum digital signatures.
Each user registers one or more device keys. The browser generates an ML-DSA key pair (FIPS 204), keeps the private key in the browser, and sends only the public key to Drupal. To log in, the site issues a single-use, short-lived challenge; the browser signs it and Drupal verifies the signature on the server with the PHP extension paragonie/ext-pqcrypto. No shared secret ever travels over the network or is stored in the database.
Features
- Works with Drupal core's login form and login block, including the administration login.
- Removes password authentication site-wide: login form, REST /user/login, HTTP Basic auth and any module that relies on the user.auth service.
- Multiple keys per account, with proof of possession at enrollment, last-used dates, renaming and revocation from the user's own "Post-quantum keys" tab.
- Account recovery and first-key enrollment through Drupal core's one-time login link.
- Single-use challenges with domain separation, flood control and generic error messages that do not reveal whether an account exists.
- Email notifications when a key is added or revoked.
- Status report checks, drush uli and an emergency switch in settings.php so a site can never be locked out.
Requirements
- Drupal 10.3 or 11.
- PHP 8.1+ with the pqcrypto extension (https://github.com/paragonie/ext-pqcrypto). Prebuilt binaries exist for x86_64 Linux and Windows; other platforms must build it from source. Most shared hosting cannot load custom PHP extensions, so this module targets VPS, container and dedicated hosting.
- JavaScript in the browser (uses @noble/post-quantum).
Limitations
- Unlike WebAuthn passkeys, keys are not bound to the origin by the browser or stored in hardware, so phishing resistance is weaker and an XSS on the site could use a stored key. Use a strict Content Security Policy.
- ext-pqcrypto is pre-1.0 and has not been independently audited.
Roadmap
- Simple OAuth grant for decoupled sites.
- Native WebCrypto ML-DSA backend once browsers ship it.
Project status: under active development; not yet covered by Drupal's security advisory policy.
| Attachment | Size |
|---|---|
| keypglogin.jpg | 10.38 KB |
Project information
- Project categories: Access control
- Created by carlos romero on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
