ProjectsNovaPass
← Projects

NovaPass

A password manager. The browser encrypts each vault item with AES-GCM before it leaves the device; a Spring Boot API stores the ciphertext and handles login with JWTs, TOTP and passkeys.

  • TypeScript 52%
  • Java 40%
  • JavaScript 2%
  • PLpgSQL 2%
  • Shell 2%

live from github.com/Team-ADAPT/NovaPass, refreshed daily

Year
2026
Team and role
A Team ADAPT project.
Built with
Java 17Spring BootPostgreSQLNext.jsTypeScriptWeb Crypto
See it
Code ↗

The problem

A password manager is only as trustworthy as what its server can read. The aim of NovaPass was a server that stores vault entries without being able to open them, plus the login hardening a real one needs: second factors, passkeys, rate limits, and sessions that can be revoked.

How it works

The master password never goes to the server. The browser stretches it into 512 bits and splits them in two.

master password + salt
  -> PBKDF2-SHA256, 600,000 iterations (in the browser)
  -> 512 bits, split in half
       first half  -> auth key -> POST /api/auth/login
                      -> server checks it with Argon2id -> JWT (15 min) + refresh token
       second half -> AES-GCM key -> encrypt each item -> /api/vault stores ciphertext
another device -> POST /api/sync/vault {lastSyncAt}
  -> items changed since then -> decrypted in the browser

The back end is Spring Boot over PostgreSQL, with five Flyway migrations and 38 REST endpoints across auth, passkeys, the vault, sync and admin. Logins can add TOTP codes or a passkey (WebAuthn). Refresh tokens rotate on every use, and the JWT filter builds the user from the token's claims, so an authenticated request doesn't need a database lookup.

Two decisions

Version numbers instead of locks. Each vault item carries a version counter. An update that arrives with an old version is rejected as a conflict, and the client fetches the latest copy and picks: keep mine, keep the server's, or merge. Locks would be simpler to reason about but don't work for a laptop that edits offline. Merging has to happen on the client, because the server only ever sees ciphertext and has nothing to merge.

Rate limiting in memory, not Redis. Login routes allow 20 requests a minute per IP, using token buckets held in a size-capped in-process cache (Caffeine, 100,000 entries, evicted after 10 minutes idle). That needs no extra service to run. The cost is that limits are per server instance and reset on restart, which is fine for one instance and wrong for several.

What broke

After login, every protected endpoint behaved as if nobody was signed in. The JWT filter was storing the user as a plain string ("id:email"), while the controllers asked Spring for a UserDetails object, so they received null. The fix (commit a4b48f8) wraps the principal in a proper Spring Security User. An earlier commit had already replaced a per-request database lookup with parsing that same string, so the fix kept the no-lookup design.