How angeshpandian-afk/password-analyzer works
PassGuard is a local password-strength and security-awareness application, offered as a Flask web app and an offline single-file HTML version. In the Flask workflow, a user enters a password in the analyzer page; its browser script sends it to the API, which invokes the analysis engine and returns scores, checks, warnings, and crack-time estimates for display. Users can also generate passwords, download reports, and view awareness tips and a quiz. The graph preserves these documented capabilities; some page-to-script links rely on README documentation rather than sampled page source.
Main entry points: app.py Routes and API · wordlist.py Word Data Loader · analyzer.py Strength Engine · analyzer.js Analyzer UI
Components 22
Flask Web App
- Routes and API
app.py - Analyzer Page
templates/index.html - Analyzer UI
static/js/analyzer.js - Shared UI Helpers
static/js/common.js - Theme Controls
static/js/theme.js
Password Analysis
- Strength Engine
core/analyzer.py - Blocklist Check
core/common.py - Word Data Loader
core/wordlist.py - Common Passwords
data/common_passwords.txt - Dictionary Words
data/wordlist.txt
User Features
- Generator Page
templates/generator.html - Generator UI
static/js/generator.js - Secure Generator
core/generator.py - Report Builder
core/report.py - Awareness Page
templates/awareness.html - Awareness UI
static/js/awareness.js - Tips and Quiz
data/awareness.json
Offline Edition
- Standalone HTML
standalone/PassGuard.html - Offline Logic
standalone/src/engine.js - Offline UI
standalone/src/ui.js
Other components
- User
- Browser
Connections 30
- User → Browser: uses
README.md - Browser → Analyzer Page: opens
README.md - Analyzer Page → Analyzer UI: loads script
README.md - Analyzer UI → Shared UI Helpers: calls API helper
static/js/analyzer.js - Shared UI Helpers → Routes and API: sends requests
static/js/common.js - Routes and API → Strength Engine: analyzes
app.py - Strength Engine → Blocklist Check: checks blocklist
core/analyzer.py - Strength Engine → Word Data Loader: matches words
core/analyzer.py - Blocklist Check → Word Data Loader: uses data path
core/common.py - Word Data Loader → Common Passwords: loads
- Word Data Loader → Dictionary Words: loads
core/wordlist.py - Strength Engine → Analyzer UI: returns results
README.md - Browser → Generator Page: opens
README.md - Generator Page → Generator UI: loads script
README.md - Generator UI → Shared UI Helpers: uses helpers
README.md - Routes and API → Secure Generator: generates passwords
app.py - Secure Generator → Word Data Loader: chooses passphrase words
core/generator.py - Generator UI → Routes and API: requests generation
README.md - Analyzer UI → Routes and API: requests reports
static/js/analyzer.js - Routes and API → Report Builder: builds report
app.py - Browser → Awareness Page: opens
README.md - Awareness Page → Awareness UI: loads script
README.md - Routes and API → Tips and Quiz: loads content
app.py - Awareness UI → Tips and Quiz: presents tips and quiz
README.md - Browser → Theme Controls: uses theme
README.md - User → Standalone HTML: opens locally
README.md - Standalone HTML → Offline UI: includes UI
README.md - Offline UI → Offline Logic: calls analysis and generation
standalone/src/ui.js - Offline Logic → Dictionary Words: uses embedded data
standalone/src/engine.js - Offline Logic → Common Passwords: uses embedded data
README.md