CASE STUDYFull-stack web app · PWA

Keyra

A zero-knowledge password manager — the server only ever sees encrypted data.

Live demo
Next.jsTypeScriptTailwind-CSSSupabaseGoogle-AuthZero-Knowledge-EncryptionAES-256-GCMArgon2id
01

Screenshots

02

The problem

Most password managers ask you to trust the server. Keyra follows a Bitwarden-style model: your master password never leaves the browser, so even the database admins cannot read your vault.
03

What it does

  • 01Zero-knowledge encryption — master password never leaves the browser
  • 02AES-256-GCM for every vault item, folder name and file attachment
  • 03Two-step auth: Google sign-in for identity, a separate master password for the vault
  • 04Folders, trash with restore / permanent delete, and JSON vault export
  • 05Encrypted file attachments stored in Supabase Storage
  • 06Offline support: cached vault in IndexedDB with a queue that syncs when back online
  • 07Installable PWA with offline app-shell caching
04

How it works

  1. 1

    Sign in with Google — this only proves who you are and creates a Supabase session.

  2. 2

    Enter your master password — an encryption key is derived from it entirely in your browser.

  3. 3

    A random vault key is generated and wrapped (encrypted) with that derived key.

  4. 4

    Items, folder names and attachments are encrypted client-side before anything is stored.

  5. 5

    The server and database only ever receive encrypted blobs.

05

Engineering decisions

  • A wrong master password simply fails decryption — no separate “check password” API call is needed.
  • Row Level Security ensures each user can only reach their own rows.
  • The vault key lives only in memory and is dropped when the tab closes.
06

Tech stack

Frontend
Next.js 16 (App Router, Turbopack), TypeScript, Tailwind CSS 4
Auth
Supabase Auth (Google OAuth)
Database
Supabase PostgreSQL with Row Level Security
Encryption
Web Crypto API (AES-256-GCM)
Key derivation
Argon2id via hash-wasm (WASM)
Offline / PWA
IndexedDB (idb), Serwist service worker
State
Zustand (in-memory only — the vault key is never persisted)
  • Import from Chrome / Bitwarden / LastPass