PassDesk Password Manager
Built and deployed a cloud-hosted password manager with a zero-knowledge-style security model: vault encryption keys are derived in the browser, encrypted records are stored in Neon, and recovery requires both registered email access and the recovery code.
Environment
- ›Frontend and API hosted on Vercel
- ›Neon PostgreSQL database for encrypted vault metadata and records
- ›Client-side key derivation and encryption before data leaves the browser
- ›Email-backed recovery workflow tied to a user-held recovery code
- ›Live deployment: https://firoz-passdesk.vercel.app/
Objectives
- 01Create a working password keeper where plaintext passwords are never stored in the database
- 02Derive encryption keys client-side from the user's master password instead of keeping vault keys on the server
- 03Make account recovery intentionally strict: recovery is possible only with real email ownership and the recovery code
- 04Document the unrecoverable state clearly so users understand that losing both the master password and recovery code means vault data cannot be decrypted
- 05Deploy the full stack on cloud services and verify the production flow end to end
Walkthrough
Step 1
Defined the trust boundary
Kept the server responsible for authentication, storage, and delivery while keeping vault encryption and decryption in the browser. This makes Neon a store for encrypted records, not a place where usable passwords are available.
Step 2
Implemented master-password based vault access
Derived the vault key client-side from the master password and used it to unlock saved credentials locally. The master password is treated as the user's primary secret, not as a database value to be recovered by support.
Step 3
Added recovery with email plus recovery code
Built the recovery path around two checks: access to the registered email account and possession of the recovery code. If the user loses both the master password and recovery code, the encrypted vault remains unrecoverable by design.
Step 4
Deployed the production lab
Hosted the application on Vercel and connected it to Neon so the complete flow can be tested from the public URL, including sign-in, vault storage, and recovery behavior.
Step 5
Captured hardening improvements
Marked the next lab checks as rate limiting for login and recovery, email-verification abuse protection, recovery-code rotation, database backup restore testing, CSP/security headers, audit logging, and a short threat model.
Outcomes
- ✓Working cloud deployment available for review at https://firoz-passdesk.vercel.app/
- ✓Clear user-facing warning added around irreversible vault loss when both master password and recovery code are missing
- ✓Recovery model is stronger than email-only reset because the recovery code remains a required user-held factor
- ✓Good portfolio lab candidate because it shows security architecture, cloud deployment, database design, and user-risk communication
- ✓Remaining lab polish: publish a threat model, add screenshots, document crypto choices, and record backup/restore and rate-limit tests