# tsiakartem-sys/cybersecurity-study-python-labs architecture

> Architecture diagram of the GitHub repository tsiakartem-sys/cybersecurity-study-python-labs, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tsiakartem-sys/cybersecurity-study-python-labs
- Repository: https://github.com/tsiakartem-sys/cybersecurity-study-python-labs

## Overview

This repository is a set of three standalone security-programming labs, not a single deployed application. The user-to-result workflow is to run a lab script and receive password-strength analysis, access-control decisions, or a demonstration of user registration and login. Task 3 additionally hashes passwords, stores user records in CSV, and logs login attempts in JSON. The README is empty; relationships shown here come from the sampled task modules, with no claims about unsampled behavior.

Main entry points: [`labs/lab01/task1.py`](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task1.py) (Strength analysis), [`labs/lab01/task2.py`](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task2.py) (Access checks), [`labs/lab01/task3.py`](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task3.py) (Auth workflow), [`shared/student.py`](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/shared/student.py) (Student constants)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_passwords["Password analysis"]
  node_task1["Strength analysis<br/>[task1.py]"]
  node_reuse["Reuse simulation<br/>[task1.py]"]
  node_rating["Password rating<br/>[task1.py]"]
  node_strength_output["Analysis table<br/>[task1.py]"]
end

subgraph group_access["Access control"]
  node_task2["Access checks<br/>[task2.py]"]
  node_resource_output["Resource listing<br/>[task2.py]"]
  node_access_policy["Access policy<br/>[task2.py]"]
  node_access_output["Decision report<br/>[task2.py]"]
end

subgraph group_auth["Authentication demo"]
  node_task3["Auth workflow<br/>[task3.py]"]
  node_hashing["Password hashing<br/>[task3.py]"]
  node_registration["User registration<br/>[task3.py]"]
  node_user_store[("CSV user store<br/>[users.csv]")]
  node_authentication["Login verification<br/>[task3.py]"]
  node_event_logging["Login event logger<br/>[task3.py]"]
  node_log_store[("JSON event log<br/>[log.json]")]
end

subgraph group_shared["Shared student data"]
  node_student_data["Student constants<br/>[student.py]"]
end

node_user(("Lab runner"))

node_user -->|"runs"| node_task1
node_user -->|"runs"| node_task2
node_user -->|"runs"| node_task3
node_task1 -->|"duplicates passwords"| node_reuse
node_task1 -->|"evaluates passwords"| node_rating
node_task1 -->|"prints results"| node_strength_output
node_task2 -->|"prints resources"| node_resource_output
node_task2 -->|"runs checks"| node_access_output
node_access_output -->|"checks access"| node_access_policy
node_task3 -->|"registers users"| node_registration
node_registration -->|"hashes passwords"| node_hashing
node_registration -->|"writes records"| node_user_store
node_task3 -->|"attempts login"| node_authentication
node_authentication -->|"reads records"| node_user_store
node_authentication -->|"hashes submitted password"| node_hashing
node_authentication -->|"decorated by"| node_event_logging
node_event_logging -->|"appends events"| node_log_store
node_task1 -->|"imports student details"| node_student_data
node_task2 -->|"imports variant"| node_student_data
node_task3 -->|"imports variant"| node_student_data

click node_task1 "https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task1.py"
click node_reuse "https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task1.py"
click node_rating "https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task1.py"
click node_strength_output "https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task1.py"
click node_task2 "https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task2.py"
click node_resource_output "https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task2.py"
click node_access_policy "https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task2.py"
click node_access_output "https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task2.py"
click node_task3 "https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task3.py"
click node_hashing "https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task3.py"
click node_registration "https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task3.py"
click node_user_store "https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/data/users.csv"
click node_authentication "https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task3.py"
click node_event_logging "https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task3.py"
click node_log_store "https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/data/log.json"
click node_student_data "https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/shared/student.py"

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_task1,node_reuse,node_rating,node_strength_output toneBlue
class node_task2,node_resource_output,node_access_policy,node_access_output toneAmber
class node_task3,node_hashing,node_registration,node_user_store,node_authentication,node_event_logging,node_log_store toneMint
class node_student_data toneRose
class node_user toneIndigo
```

## Components

### Password analysis

- [Strength analysis](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task1.py): `labs/lab01/task1.py`
- [Reuse simulation](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task1.py): `labs/lab01/task1.py`
- [Password rating](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task1.py): `labs/lab01/task1.py`
- [Analysis table](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task1.py): `labs/lab01/task1.py`

### Access control

- [Access checks](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task2.py): `labs/lab01/task2.py`
- [Resource listing](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task2.py): `labs/lab01/task2.py`
- [Access policy](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task2.py): `labs/lab01/task2.py`
- [Decision report](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task2.py): `labs/lab01/task2.py`

### Authentication demo

- [Auth workflow](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task3.py): `labs/lab01/task3.py`
- [Password hashing](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task3.py): `labs/lab01/task3.py`
- [User registration](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task3.py): `labs/lab01/task3.py`
- [CSV user store](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/data/users.csv): `labs/lab01/data/users.csv`
- [Login verification](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task3.py): `labs/lab01/task3.py`
- [Login event logger](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/task3.py): `labs/lab01/task3.py`
- [JSON event log](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/labs/lab01/data/log.json): `labs/lab01/data/log.json`

### Shared student data

- [Student constants](https://github.com/tsiakartem-sys/cybersecurity-study-python-labs/blob/main/shared/student.py): `shared/student.py`

### Other components

- **Lab runner**

## Connections

- Lab runner → Strength analysis: runs (evidence: `labs/lab01/task1.py`)
- Lab runner → Access checks: runs (evidence: `labs/lab01/task2.py`)
- Lab runner → Auth workflow: runs (evidence: `labs/lab01/task3.py`)
- Strength analysis → Reuse simulation: duplicates passwords (evidence: `labs/lab01/task1.py`)
- Strength analysis → Password rating: evaluates passwords (evidence: `labs/lab01/task1.py`)
- Strength analysis → Analysis table: prints results (evidence: `labs/lab01/task1.py`)
- Access checks → Resource listing: prints resources (evidence: `labs/lab01/task2.py`)
- Access checks → Decision report: runs checks (evidence: `labs/lab01/task2.py`)
- Decision report → Access policy: checks access (evidence: `labs/lab01/task2.py`)
- Auth workflow → User registration: registers users (evidence: `labs/lab01/task3.py`)
- User registration → Password hashing: hashes passwords (evidence: `labs/lab01/task3.py`)
- User registration → CSV user store: writes records (evidence: `labs/lab01/task3.py`)
- Auth workflow → Login verification: attempts login (evidence: `labs/lab01/task3.py`)
- Login verification → CSV user store: reads records (evidence: `labs/lab01/task3.py`)
- Login verification → Password hashing: hashes submitted password (evidence: `labs/lab01/task3.py`)
- Login verification → Login event logger: decorated by (evidence: `labs/lab01/task3.py`)
- Login event logger → JSON event log: appends events (evidence: `labs/lab01/task3.py`)
- Strength analysis → Student constants: imports student details (evidence: `labs/lab01/task1.py`)
- Access checks → Student constants: imports variant (evidence: `labs/lab01/task2.py`)
- Auth workflow → Student constants: imports variant (evidence: `labs/lab01/task3.py`)
