In late 2026, the cryptographic landscape shifted in a quiet but important way. RSA-512 had been dead for years. RSA-1024 was already under serious pressure from large GPU fleets. Then came the “Claude story”: an Anthropic engineer used Claude to port CADO-NFS to GPUs and factored the RSA-896 challenge number using roughly 30 GPU-years of idle compute. No algorithmic breakthrough — just AI-assisted engineering applied to existing number-field sieve tooling.
RSA-2048, for the moment, remains out of practical reach.
Against that backdrop, Auth 3.0 (also called SI Auth) appeared as a deliberately simple, fully auditable reference implementation. It is not trying to replace WebAuthn. It is an answer for teams who want a self-hosted, dependency-light, passwordless authentication protocol they can actually read and reason about in an afternoon.
The core idea is almost old-fashioned:
The browser generates an RSA-2048 keypair.
The private key never leaves the device.
Login is a challenge signed client-side and verified server-side against a stored public key.
No passwords. No shared secrets on the wire. No password hashes in the database.
Status Quo
Passwords remain the weakest link in most systems:
- Users reuse them.
- Databases leak.
- Credential stuffing and phishing still work at industrial scale.
- Even “passwordless” systems that rely on magic links or SMS are vulnerable to interception and social engineering.
WebAuthn / passkeys solve a large part of this problem elegantly, but they come with platform and dependency complexity. Many teams still want something they fully control, can deploy on a single Node process, and can audit line-by-line.
Auth 3.0 sits in that gap.
How Auth 3.0 Works
The protocol is a classic challenge-response design with modern browser cryptography.
Registration (high level)
- Browser generates a non-extractable RSA-2048 keypair using the Web Crypto API (
extractable: false). - Server issues a short-lived registration challenge (nonce + origin + purpose).
- Browser signs a canonical payload with the private key.
- Browser sends the public key (SPKI) + signature to the server.
- Server verifies the signature and stores only the public key, bound to the user and a device/credential identifier.
Login
Browser Server
│ │
│ POST /api/auth/login/challenge │
│ { username } │
│──────────────────────────────────────────▶│
│ │ generate 32-byte nonce
│ { challengeId, challenge, origin, ... } │ cache with short TTL
│◀──────────────────────────────────────────│
│ │
│ sign canonical payload with │
│ non-extractable CryptoKey │
│ │
│ POST /api/auth/login/verify │
│ { challengeId, username, signature } │
│──────────────────────────────────────────▶│
│ │ verify (Rust or Node)
│ 200 { user, credential } + Set-Cookie │
│◀──────────────────────────────────────────│
The canonical signing payload is deliberately simple and human-readable:
SI-AUTH-V1
origin:https://app.example.com
purpose:login
challenge:9f2c…e41a
username:me@example.com
issuedAt:2025-01-01T12:00:00.000Z
Both sides reconstruct this string from their own state. There is no room for the client to invent or omit fields. The origin binding is critical — a challenge intercepted and replayed on a different domain is useless.
Signature algorithm: RSASSA-PKCS1-v1_5 + SHA-256 over RSA-2048.
Security Properties
The design deliberately minimizes secrets on the server:
- ✅ No secrets at rest on the server — only public keys are stored.
- ✅ No reusable secrets in transit — each signature is bound to a single-use, TTL-limited nonce.
- ✅ Non-extractable private keys — Web Crypto
extractable: falsemeans even successful XSS cannot easily exfiltrate the private key material. - ✅ Origin-bound signatures — phishing resistance is built into the signed payload.
- ✅ Per-device credentials — users can register multiple devices and revoke them individually.
- ✅ HttpOnly + SameSite=Strict session cookies (JWT-based) after successful verification.
Warnings:
- TLS is still mandatory.
- This is a test/trial implementation. Get it audited before production use.
- RSA-2048 is currently safe, but the broader ecosystem is moving toward post-quantum algorithms. The protocol is designed so the key type can evolve later.
Implementation
The reference stack:
- Frontend: Plain static HTML/JS. No build step required for the demo. Uses the Web Crypto API directly.
- Backend: TypeScript on Node.
-
Optional accelerator: A small Rust N-API module (
napi-rs) that provides ~4× faster signature verification. The server auto-detects it and falls back to pure Node crypto if the native module is missing. -
One-file launcher:
python3 auth3.py si-auth/detects the OS, installs Node (and optionally Rust), scaffolds the full project tree, installs dependencies, builds the Rust accelerator, and starts the server.
Key configuration values (via environment):
| Variable | Purpose | Notes |
|---|---|---|
APP_ORIGIN |
Exact browser origin | Must match exactly |
JWT_SECRET |
Session signing secret | Required in production |
CHALLENGE_TTL_SECONDS |
Login challenge lifetime | Default 60s |
SI_AUTH_USE_RUST |
Force Rust accelerator |
auto / true / false
|
AUTH 3.0 is for teams who want a self-hosted, dependency-free, fully auditable protocol they can read in an afternoon.
Auth 3.0 is not competing with platform authenticators or passkeys. It is a transparent, RSA-2048-based alternative that prioritizes auditability and operational simplicity over the full feature surface of WebAuthn.
In Final
Passwordless authentication does not require a complex identity platform. In many cases it only requires:
- A strong asymmetric keypair generated on the client.
- A private key that never leaves the device.
- A carefully constructed, origin-bound, single-use challenge.
- Server-side verification of a public key.
Auth 3.0 is a clean realization of that idea using RSA-2048 and the Web Crypto API, packaged with a pragmatic TypeScript + optional Rust stack and a one-command launcher.
Built for teams that value transparency, self-hosting, and the ability to understand every line of their authentication protocol, it is a compelling reference implementation.
Repository: https://github.com/webxos/macroslow/tree/main/auth3
MIT licensed. Reference implementation. Audit before production use.

Top comments (0)