How ff897794-maker/safepass-projet-studi works
Safepass is a browser-based password manager: users sign in, generate credentials, and save, view, or delete vault entries. The browser calls an Express API; the server authenticates users, protects vault routes with JWTs, and stores encrypted credentials in PostgreSQL. The graph includes the documented UI theme and password-strength behavior. Evidence is limited to the README (empty) and the sampled files; some UI and server code appears inconsistent, so the graph reflects stated calls rather than assuming they work successfully.
Main entry points: script.js Client interactions · server.js Authentication routes · index.html Password manager UI · init.sql Database schema
Components 14
Browser client
- Password manager UI
public/index.html - Client interactions
public/script.js - Password generator
public/script.js - Theme toggle
public/script.js
API and access
- Authentication routes
server.js - Vault routes
server.js - JWT protection
server.js
Security and storage
- Credential encryption
utils/crypto.js - Password hashing
server.js - JWT signing
server.js - PostgreSQL
- Database schema
init.sql
Other components
- User
- Browser local storage
Connections 15
- User → Password manager UI: uses
- Password manager UI → Client interactions: runs
- Client interactions → Authentication routes: logs in
public/script.js - Client interactions → Vault routes: manages entries
public/script.js - Client interactions → Password generator: generates with
public/script.js - Client interactions → Theme toggle: toggles
public/script.js - Client interactions → Browser local storage: stores token and theme
public/script.js - Authentication routes → Password hashing: hashes and checks
server.js - Authentication routes → PostgreSQL: reads and writes users
server.js - Authentication routes → JWT signing: signs token
server.js - Vault routes → JWT protection: requires
server.js - Vault routes → PostgreSQL: reads and writes entries
server.js - Vault routes → Credential encryption: encrypts and decrypts
server.js - JWT protection → JWT signing: verifies token
server.js - Database schema → PostgreSQL: defines schema