( Case study — 02 )
SafePass
A personal password vault, encrypted on your device before anything leaves it. On the web, in Chrome and on your phone.
- Company
- Personal project
- Role
- Design & development
- Period
- 2024 — Now
- Stack
Overview
SafePass is my own password vault. It keeps logins, cards, IDs and keys in one place that only you can open, on the web, in Chrome and on your phone. Everything is encrypted on your device before it’s uploaded, so the server only ever stores ciphertext. I designed and built all of it on my own: the website, the browser extension, the iPhone and Android app, the API behind them, and, most recently, a full redesign of how it looks and feels.
- Role: Design & development, solo
- Platforms: Website, Chrome extension, iOS and Android app (Expo)
- Stack: Next.js, TypeScript, Web Crypto API, Chrome Extension (Manifest V3), Expo / React Native, NestJS, GraphQL, Prisma, Postgres, Vercel
- Live: safepass.rikesh.codes
The problem
I wanted a password manager I fully understood. The big ones are built for teams and seats, and I couldn’t read the code guarding my own passwords. I wanted something smaller and honest: one person’s vault, zero-knowledge by design, that says exactly what leaves the device and what doesn’t.
Goals & constraints
- Zero-knowledge, no exceptions. The server must never be able to read an item. Even the stats on the dashboard are computed on the device from the decrypted vault.
- One person. I’m the designer, developer, reviewer and ops team. Every decision had to keep the amount of code I maintain small.
- Many platforms, one vault. The same items have to open in a browser tab, in the Chrome toolbar and on a phone, with the same crypto everywhere.
Architecture
The core idea: the crypto lives in one shared folder of TypeScript, and every client runs the same code.
- The website and the extension share
lib/vaultdirectly. The Expo app keeps an identical copy insrc/vault, and acheck-shared.shscript fails if the two drift apart. It covers the crypto, item kinds, health checks, breach check, 2FA codes, stats and the password generator. - Everything uses the Web Crypto API, so the same code runs in browsers, in the app and in Node’s test runner.
- The API is a NestJS GraphQL server with Prisma and Postgres. It stores the encrypted items and a small “envelope” per user, and nothing in that envelope can open the vault on its own.
- The website and the API deploy to Vercel. Commits are SSH-signed, and a smoke test runs against production after each deploy.
Your device (web · extension · app) SafePass server
┌─────────────────────────────────┐ ┌──────────────────────────┐
│ master password │ │ GraphQL API (NestJS) │
│ └─ PBKDF2-SHA256, 600,000 × │ │ └─ Postgres (Prisma) │
│ └─ unwraps vault key │ │ │
│ vault key ─ AES-256-GCM ─ items │──cipher───▶ │ ciphertext + envelope │
│ shared code: lib/vault │ text only │ (can't open it alone) │
└─────────────────────────────────┘ └──────────────────────────┘
│ first 5 chars of a SHA-1 hash ──▶ Have I Been Pwned
│ site domain (for icons) ────────▶ DuckDuckGo
Security model
What leaves the device. Items are encrypted with AES-256-GCM before they’re uploaded. Your master password goes through PBKDF2-SHA256 with 600,000 iterations to make a key, and that key unlocks a random vault key. Neither the password nor the vault key ever reaches the server.
What the server can see. I made this a feature, not small print: your account email, each item’s kind, the favorite flag, created, updated, archived and deleted dates, your Google name and photo if you sign in with Google, and the names and last-used dates of unlock passkeys. Nothing else.
Ways in. Master password, a recovery key, or a passkey / Face ID / fingerprint set up on a device. On the web, passkey unlock uses the WebAuthn PRF extension: the device turns a salt into a secret that unwraps the vault key, so no unlock secret goes to the server. The recovery key is shown once. Lose both it and the master password, and nobody, including me, can get your items back. The product says that plainly.
Auto-lock. 1 to 60 minutes on web and extension (15 by default), from immediately up to 60 minutes in the app (5 by default).
Breach check with k-anonymity. To ask Have I Been Pwned whether a password has leaked, only the first 5 characters of its SHA-1 hash leave the device. The service sends back every match under that prefix, padded with decoys, and the comparison happens on the device. Site icons come from DuckDuckGo, which sees only the domain. Apart from those two, nothing goes anywhere but SafePass.
The extension. When I added a floating “Fill” card on login pages, I read up on the 2025 DOM-based clickjacking research that had tricked several password-manager extensions into filling hidden menus. Before the card could ship, it needed defences: a top-layer popover, a guarded host element, visibility checks on the page before showing and before each fill, and a fill only on a real click or key press shortly after the card appears. “Fill and sign in” is off by default.
Design process
The product worked, but it looked like what it was: a developer’s tool. So I redesigned it from the brand up.
Exploration. I moved the work from Figma to an AI-assisted design canvas (Claude Design), where every board is live markup. That let me put the current site next to six landing directions, A to F: messaging and trust, conversion, merged sections, richer sections, a reference style and a full page. I explored logo concepts and landed on an infinite key: an infinity loop in a rounded tile, “one key, endless logins.” The final landing is a clean blend of the strongest directions rather than any single one.
System. The type went from General Sans to Outfit SemiBold for headings and Switzer Light for body text. The colour took the longest. I started with an indigo-to-sky gradient, tried a Plum (indigo to magenta) palette, and settled on “Evergreen”, emerald to blue. I blended it in OKLCH so the middle of the gradient stays vivid instead of turning muddy, and used it as a radial glow. Around it: frosted-glass surfaces, soft glows and a faint emerald dot grid.
Pages. Every claim on the new landing page is checked against the live product, and mock-ups use example data and say so.
The web app. I didn’t draw the app from memory. I rebuilt the screens from the real code, so every state the code can reach has a design: empty, locked, loading, errors, every item kind. Each board has design-state switchers to flip between them.
Mobile. On the phone, I cut the vault list down to a single row of chips, with sorting and the rest of the filters moved into a Filter & sort sheet. I also proposed a bottom bar plus a More drawer in place of the buttons each screen keeps in its top row today, and marked it on the boards as a proposal, not a decision.
Tablet and foldables. The app is portrait-locked today and has no tablet layout. I designed a split view for iPad, list on the left and item on the right, in portrait and landscape, plus postures for foldable phones. All of these are labelled as proposals.
Security-led UX. Some design decisions are really security decisions. A foldable’s cover screen is visible to anyone nearby, so no secrets show on it.
Accessibility
- Light weight only at 16px and above. Switzer Light is lovely and fragile, so anything smaller uses a heavier weight.
- Text contrast of at least 4.5:1, measured with an audit script on the rendered pages, and every brand colour checked against white text before it was used.
- Touch targets of at least 44px, and every layout works at 390px wide.
- Status never relies on colour alone. Chips always carry a word: “Strong”, “Weak”, “Exposed”.
- Mock-ups are exposed as a single image to screen readers. A product illustration built from markup would otherwise read out as dozens of fake buttons and rows, so each one is a single labelled image.
Key challenges & decisions
Keeping three clients in sync. Problem: the website, extension and app all need the same crypto, and a tiny difference could lock someone out. Decision: one shared lib/vault folder, copied as-is into the app, with a script in CI that fails on drift. Why: one implementation and one set of test vectors is the only version I can trust on my own.
Stats without breaking zero-knowledge. Problem: I wanted a dashboard overview with a health score, duplicates, missing 2FA and expiring cards. Decision: compute it all on the device from the decrypted vault, using only metadata the server already has. Why: the server can’t see your items, so a server-side dashboard was never an option.
Autofill that can’t be turned against you. Problem: a prompt that appears without a click is a bigger clickjacking target. Decision: treat the defences as part of the feature, not a follow-up, and keep “Fill and sign in” off by default. Why: a password manager that fills on a hidden page is worse than one that doesn’t fill at all.
Designing from code, not from screenshots. Problem: redesigns drawn from screenshots miss the states nobody screenshots, like errors, empty vaults and locked screens. Decision: rebuild each screen from the source, with state switchers on every board. Why: the design covers what the product actually does.
Saying what’s not done. Problem: it’s tempting to look finished. Decision: the site says the extension is installed by hand and the app isn’t in the stores, and the tablet boards are marked as proposals. Why: a security product only works if people believe it.
What I learned
Building the crypto once and sharing it everywhere taught me more about trust than any feature. The hard part of zero-knowledge isn’t the encryption; it’s being precise about the few things that do leave the device and saying them out loud. On the design side, rebuilding screens from real code changed how I work: it surfaced states I had forgotten I’d built, and it kept the redesign honest.
What’s next
From the current roadmap:
- Publish the 0.11.0 extension with the floating autofill card, and list it on the Chrome Web Store.
- Website tools that need no backend: a public password generator and checker, a username generator, a guarded export with a printable Emergency Kit, and a printable health report.
- Secure share links: the key lives in the URL fragment, and the server sees only ciphertext, with expiry and view limits.
- App distribution: TestFlight and a Play internal track, plus Android AutoFill.
- Landing page refresh to describe the finished feature set, with real screenshots.