How keyaraaa/cloud-safe-vault works
Cloud-safe-vault is a Flask web app for password tools and temporary text encryption. Users interact through browser pages: password generation, passphrase creation, strength scoring and breach checks call password APIs; encryption returns a token and one-time key, which the browser retains for later decryption. The backend stores encrypted tokens with expiry and exposes basic statistics and health checks. Password implementation excerpts were not supplied, so those internal links are limited to the documented feature boundaries; deployment and test machinery are omitted.
Main entry points: app.js Browser UI · __init__.py App factory and pages · services.py Password operations · routes.py Password API
Components 16
Web interface
- Browser UI
app/static/js/app.js - Language switcher
app/static/js/i18n.js - Page templates
app/templates - Browser token records
app/static/js/app.js
Flask application
- App factory and pages
app/__init__.py
Password tools
- Password API
app/passwords/routes.py - Password operations
app/passwords/services.py - Passphrase wordlist
app/passwords/wordlist.py
Encryption and storage
- Crypto API
app/crypto/routes.py - Fernet operations
app/crypto/services.py - Encrypted token model
app/crypto/models.py - SQL database
Metrics
- Prometheus metrics
app/__init__.py
Other components
- User
- Have I Been Pwned
- Prometheus scraper
Connections 18
- User → Browser UI: uses
- Browser UI → Page templates: views
- Browser UI → Language switcher: applies translations
- Browser UI → Password API: calls password APIs
- Browser UI → Crypto API: calls crypto APIs
- App factory and pages → Page templates: renders pages
- App factory and pages → Password API: registers blueprint
- App factory and pages → Crypto API: registers blueprint
- Password API → Password operations: calls operations
- Password operations → Passphrase wordlist: uses words
- Password operations → Have I Been Pwned: checks hash range
- Crypto API → Fernet operations: calls operations
- Fernet operations → Encrypted token model: queries and writes
- Encrypted token model → SQL database: persists records
- Browser UI → Browser token records: saves token and key
- App factory and pages → Encrypted token model: queries statistics
- App factory and pages → Prometheus metrics: initializes
- Prometheus scraper → Prometheus metrics: scrapes metrics