How dev-chris06/password-manager works
This is a procedural PHP password manager: a user signs in, manages a per-user encrypted vault, and can export/import backups or use a Chrome autofill extension. The request flow passes through the PHP entry point and page/AJAX handlers; authentication, vault operations, and cryptography use shared internal modules and MySQL. The README documents audit logging, login rate limits, password changes, and extension support. Some feature files were not sampled, so links for those documented branches are marked as unverified where appropriate.
Main entry points: auth.php Authentication and limits · entrees.php Vault operations · index.php PHP entry point · importer.php Import endpoint
Components 24
Web application
- PHP entry point
index.php - Public router
public/router.php - Vault dashboard
pages/dashboard.php - Entry management
pages/ajouter.php - Edit entry
pages/modifier.php - Password generator
assets/js/generateur.js
Vault and crypto
- Vault operations
includes/entrees.php - Encryption functions
includes/crypto.php - MySQL database
config/database.php - Backup controls
pages/backup.php - Export endpoint
ajax/exporter.php - Import endpoint
ajax/importer.php - Decrypt endpoint
ajax/dechiffrer.php - Extension endpoints
ajax/enregistrer_extension.php
Account security
- Login and registration
pages/login.php - Account registration
pages/register.php - Authentication and limits
includes/auth.php - Audit journal
pages/journal.php - Master password change
pages/changer_mdp.php - Application configuration
config/config.php
Chrome autofill
- Chrome extension
extension-chrome/content.js - Extension background
extension-chrome/background.js
Other components
- User
- Browser
Connections 35
- User → Browser: uses
README.md - Browser → Public router: sends requests
README.md - Public router → PHP entry point: routes root
public/router.php - PHP entry point → Authentication and limits: checks session
index.php - PHP entry point → Login and registration: redirects
index.php - PHP entry point → Vault dashboard: redirects
index.php - Login and registration → Authentication and limits: authenticates
pages/login.php - Account registration → Authentication and limits: registers account
pages/register.php - Authentication and limits → MySQL database: queries
includes/auth.php - Authentication and limits → Encryption functions: uses
includes/auth.php - Authentication and limits → Application configuration: loads config
- Vault dashboard → Vault operations: lists entries
pages/dashboard.php - Entry management → Vault operations: adds entries
pages/ajouter.php - Edit entry → Vault operations: updates entries
pages/modifier.php - Vault operations → Authentication and limits: requires
includes/entrees.php - Vault operations → Encryption functions: encrypts and decrypts
includes/entrees.php - Vault operations → MySQL database: reads and writes
README.md - Audit journal → Authentication and limits: reads journal
pages/journal.php - Master password change → Authentication and limits: requires account
- Master password change → Vault operations: changes master key
README.md - Backup controls → Export endpoint: requests export
- Backup controls → Import endpoint: requests import
- Export endpoint → Authentication and limits: requires session
ajax/exporter.php - Export endpoint → Vault operations: reads vault
ajax/exporter.php - Import endpoint → Authentication and limits: requires session
ajax/importer.php - Import endpoint → Encryption functions: decrypts backup
ajax/importer.php - Import endpoint → MySQL database: imports entries
ajax/importer.php - Decrypt endpoint → Vault operations: decrypts entry
ajax/dechiffrer.php - Chrome extension → Extension background: exchanges messages
- Extension background → Extension endpoints: calls endpoints
- Extension endpoints → Authentication and limits: checks session
- Extension endpoints → Browser: serves autofill data
README.md - Entry management → Password generator: loads script
pages/ajouter.php - Edit entry → Password generator: loads script
pages/modifier.php - Application configuration → MySQL database: configures connection
config/database.php