# mohamed-mkm/cs_2_passwordstrengthchecker_byte architecture

> Architecture diagram of the GitHub repository mohamed-mkm/cs_2_passwordstrengthchecker_byte, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mohamed-mkm/cs_2_passwordstrengthchecker_byte
- Repository: https://github.com/mohamed-mkm/cs_2_passwordstrengthchecker_byte

## Overview

This repository provides a configurable password-policy checker through a Python command-line program and a browser interface. In both, a user supplies a password, six length and character-class rules produce a score, thresholds classify it as Weak, Moderate, or Strong, and the result includes rule feedback. The Python implementation also supports repeated checks until the user exits. The README documents sample cases and security limitations; sample/test files are demonstration data rather than runtime components. The web wiring is based on the sampled script and documented web interface; HTML details were not sampled.

Main entry points: [`py_pass_strength_check.py`](https://github.com/mohamed-mkm/cs_2_passwordstrengthchecker_byte/blob/main/py_pass_strength_check.py) (CLI interaction), [`web/index.html`](https://github.com/mohamed-mkm/cs_2_passwordstrengthchecker_byte/blob/main/web/index.html) (Password interface), [`web/script.js`](https://github.com/mohamed-mkm/cs_2_passwordstrengthchecker_byte/blob/main/web/script.js) (Policy scoring)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_python["Python checker"]
  node_python_cli["CLI interaction"]
  node_python_rules["Policy scoring"]
  node_python_report["Strength report"]
end

subgraph group_web["Web checker"]
  node_web_input["Password interface<br/>[index.html]"]
  node_web_logic["Policy scoring<br/>[script.js]"]
  node_web_report["Interactive report<br/>[script.js]"]
end

node_terminal_user(("Terminal user"))
node_browser_user(("Browser user"))

node_terminal_user -->|"enters password"| node_python_cli
node_python_cli -->|"checks password"| node_python_rules
node_python_rules -->|"returns result"| node_python_cli
node_python_cli -->|"prints report"| node_python_report
node_browser_user -.->|"enters password"| node_web_input
node_web_input -->|"reads input"| node_web_logic
node_web_logic -->|"renders results"| node_web_report

click node_python_cli "https://github.com/mohamed-mkm/cs_2_passwordstrengthchecker_byte/blob/main/py_pass_strength_check.py"
click node_python_rules "https://github.com/mohamed-mkm/cs_2_passwordstrengthchecker_byte/blob/main/py_pass_strength_check.py"
click node_python_report "https://github.com/mohamed-mkm/cs_2_passwordstrengthchecker_byte/blob/main/py_pass_strength_check.py"
click node_web_input "https://github.com/mohamed-mkm/cs_2_passwordstrengthchecker_byte/blob/main/web/index.html"
click node_web_logic "https://github.com/mohamed-mkm/cs_2_passwordstrengthchecker_byte/blob/main/web/script.js"
click node_web_report "https://github.com/mohamed-mkm/cs_2_passwordstrengthchecker_byte/blob/main/web/script.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_python_cli,node_python_rules,node_python_report,node_terminal_user,node_browser_user toneBlue
class node_web_input,node_web_logic,node_web_report toneAmber
```

## Components

### Python checker

- [CLI interaction](https://github.com/mohamed-mkm/cs_2_passwordstrengthchecker_byte/blob/main/py_pass_strength_check.py): `py_pass_strength_check.py`
- [Policy scoring](https://github.com/mohamed-mkm/cs_2_passwordstrengthchecker_byte/blob/main/py_pass_strength_check.py): `py_pass_strength_check.py`
- [Strength report](https://github.com/mohamed-mkm/cs_2_passwordstrengthchecker_byte/blob/main/py_pass_strength_check.py): `py_pass_strength_check.py`

### Web checker

- [Password interface](https://github.com/mohamed-mkm/cs_2_passwordstrengthchecker_byte/blob/main/web/index.html): `web/index.html`
- [Policy scoring](https://github.com/mohamed-mkm/cs_2_passwordstrengthchecker_byte/blob/main/web/script.js): `web/script.js`
- [Interactive report](https://github.com/mohamed-mkm/cs_2_passwordstrengthchecker_byte/blob/main/web/script.js): `web/script.js`

### Other components

- **Terminal user**
- **Browser user**

## Connections

- Terminal user → CLI interaction: enters password (evidence: `py_pass_strength_check.py`)
- CLI interaction → Policy scoring: checks password (evidence: `py_pass_strength_check.py`)
- Policy scoring → CLI interaction: returns result (evidence: `py_pass_strength_check.py`)
- CLI interaction → Strength report: prints report (evidence: `py_pass_strength_check.py`)
- Browser user → Password interface: enters password
- Password interface → Policy scoring: reads input (evidence: `web/script.js`)
- Policy scoring → Interactive report: renders results (evidence: `web/script.js`)
