Skip to main content

ZeqAuth — Zero-Knowledge Identity

ZeqAuth is Zeq's authentication system built on zero-knowledge principles. The server stores only three things per user: a ZID (Zeq Identity), a password hash, and a salt. No equations, no personal data, no session replay.

How It Works

When you register, ZeqAuth generates a unique ZID (e.g. zid_abc123...). Your password is hashed client-side before transmission — the server never sees the plaintext password. The resulting hash + salt pair is stored, and the ZID becomes your identity across all Zeq services.

What the Server Stores

FieldStored?Purpose
ZIDYesUnique identifier
Password hashYesAuthentication
SaltYesHash uniqueness
EmailYes (hashed)Account recovery only
EquationsNoNever stored
PIINoNever stored
Session historyNoNever stored

Authentication Flow

  1. Register: POST /api/auth/register with email + password → returns ZID
  2. Login: POST /api/auth/login with email + password → returns session cookie
  3. Session key: POST /api/auth/session-key → returns API session key for browser apps
  4. Verify: POST /api/auth/verify with session cookie → confirms authenticated ZID

Browser Integration

For browser apps, include COMPONENTS.js which handles auto-authentication:

<script src="/COMPONENTS.js?v=1.287.6"></script>

This auto-provisions a session key on login and injects it into all API calls.

Security

All ZeqAuth operations are wrapped in a ZSP envelope. The triple-kernel encryption (K_spectral × K_temporal × K_chaos) protects authentication tokens in transit.

Free Tier

Registration is free. Every ZID receives 10 computations/day and 10 AI chat messages/day. Register at zeq.dev/auth.

Related

Auth API Reference · ZSP · ZID · Account API