# qtuwn/bmtt-nc-19032025 architecture

> Architecture diagram of the GitHub repository qtuwn/bmtt-nc-19032025, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/qtuwn/bmtt-nc-19032025
- Repository: https://github.com/qtuwn/bmtt-nc-19032025

## Overview

Based on your file tree and the brief README information, this project appears to be a repository of lab exercises focusing on various aspects of cryptography, networking, and security algorithms. Although the README is minimal, the file structure tells us that each “Lab” directory groups a set of exercises – from basic Python programming in Lab-01 to more sophisticated topics like web servers, network scanners, and cryptographic ciphers in Labs 02 through 06.

##### Project Type and Purpose
- This repository isn’t a monolithic production system but rather a learning/experiment repository where each lab (Lab-01, Lab-02, …, lab-06) covers different technical topics.
- The labs include implementations for classical ciphers (Caesar, Playfair, Railfence, Vigenere), modern cryptography (AES, RSA, ECC), network protocols (ICMP, network capturing, port scanning, web server), and even blockchain and data encoding (base64) concepts.
- Its purpose is likely educational, demonstrating multiple cryptographic algorithms and network security tools.

##### File Structure for Architectural Insights
- Each Lab directory is a self-contained module illustrating distinct concepts. For example:
- Lab-01: Contains small, standalone Python scripts (exercises organized as ex01, ex02, etc.).
- Lab-02: Appears to be a web application related to cipher operations, with API endpoints (api.py, app.py) and HTML templates.
- Lab-03: Integrates UI elements (with .ui files) alongside cipher algorithms like RSA and ECC, suggesting a desktop GUI application.
- lab-04: Involves socket programming using RSA/AES and Diffie–Hellman key exchange, plus some hashing utilities.
- lab-05: Demonstrates data encoding (base64), blockchain mechanics, steganography (img-hidden), and SSL communication.
- lab-06: Focuses on network security tools including ICMP communications, system monitoring bots, network capture/scanning, port scanning, and a web server.
- The presence of configuration files (requirements.txt, certificates, etc.) shows attention to environment setup and dependency management for each module.

##### Key Components and Their Relationships
- Central Component: The overarching repository acts as an umbrella for multiple “modules” or labs.
- For Each Lab:
- Lab-01: Basic exercise modules that can be represented as isolated script runners.
- lab-04: A network communication system with separate client/server components illustrating secure communication (socket programming, certificate handling).
- lab-06: A collection of network security tools. Represent each function (ICMP, netcapture, netscanner, port scanner, webserver) as a distinct module that may share common data flows (e.g., input scan requests leading to network traffic and logging/monitoring outputs).

- Relationships/Interactions:
- In GUI-based labs (Lab-03), highlight the interactive communication between user interface components and the cryptographic algorithms.

##### Architectural Patterns and Design Principles
- Separation of Concerns: Especially in labs where UI (Lab-03) or web frontends (Lab-02) are used, clearly demarcate the separation between presentation and logic layers.
- Client-Server Model: For labs that involve network communication (lab-04, part of lab-05, and lab-06), indicate the split between client components and server components, along with secure communications (show socket connections, TLS/SSL flows where applicable).

## Diagram (Mermaid)

```mermaid
flowchart TD
    R["bmtt-nc-19032025 Labs Repository"]:::central

    %% Lab-01: Basic Exercises
    subgraph "Lab-01: Basic Exercises"
        lab1["Lab-01 Exercises"]:::component
    end

    %% Lab-02: Web-based Cipher Explorer
    subgraph "Lab-02: Web-based Cipher Explorer"
        lab2["Lab-02 Web App"]:::component
        node2a["API & App"]:::component
        node2b["HTML Templates"]:::component
        node2c["Cipher Implementations"]:::component
        lab2 -->|"uses"| node2a
        lab2 -->|"renders"| node2b
        lab2 -->|"integrates"| node2c
    end

    %% Lab-03: Desktop GUI Application
    subgraph "Lab-03: Desktop GUI Application"
        lab3["Lab-03 Desktop GUI"]:::component
        node3a["UI Layer (.ui files)"]:::component
        node3b["Cipher Implementations"]:::component
        lab3 -->|"drives"| node3a
        lab3 -->|"invokes"| node3b
    end

    %% Lab-04: Secure Network Communications
    subgraph "Lab-04: Secure Network Communications"
        lab4["Lab-04 Network Communications"]:::component
        node4a["Client (aes_rsa_socket)"]:::component
        node4b["Server (aes_rsa_socket)"]:::component
        node4c["Hash Utilities"]:::component
        lab4 -->|"initiates"| node4a
        lab4 -->|"handles"| node4b
        node4b -->|"utilizes"| node4c
    end

    %% Lab-05: Data Encoding, Blockchain, Steganography & SSL Communication
    subgraph "Lab-05: Data Encoding, Blockchain, Steganography & SSL"
        lab5["Lab-05 Utilities"]:::component
        node5a["Encoding/Blockchain/Steganography"]:::component
        node5b["SSL Communication"]:::component
        lab5 -->|"performs"| node5a
        lab5 -->|"manages"| node5b
    end

    %% Lab-06: Network Security Tools
    subgraph "Lab-06: Network Security Tools"
        lab6["Lab-06 Tools"]:::component
        node6a["ICMP Module"]:::component
        node6b["Monitor Module"]:::component
        node6c["NetCapture"]:::component
        node6d["NetScanner"]:::component
        node6e["PortScanner"]:::component
        node6f["Webserver"]:::component
        lab6 -->|"includes"| node6a
        lab6 -->|"includes"| node6b
        lab6 -->|"includes"| node6c
        lab6 -->|"includes"| node6d
        lab6 -->|"includes"| node6e
        lab6 -->|"includes"| node6f
    end

    %% Connecting the central repository to each lab module
    R --> lab1
    R --> lab2
    R --> lab3
    R --> lab4
    R --> lab5
    R --> lab6

    %% Click Events
    click lab1 "https://github.com/qtuwn/bmtt-nc-19032025/tree/main/Lab-01/"
    click lab2 "https://github.com/qtuwn/bmtt-nc-19032025/tree/main/Lab-02/"
    click lab3 "https://github.com/qtuwn/bmtt-nc-19032025/tree/main/Lab-03/"
    click lab4 "https://github.com/qtuwn/bmtt-nc-19032025/tree/main/lab-04/"
    click lab5 "https://github.com/qtuwn/bmtt-nc-19032025/tree/main/lab-05/"
    click lab6 "https://github.com/qtuwn/bmtt-nc-19032025/tree/main/lab-06/"

    %% Styles
    classDef central fill:#ffcc00,stroke:#333,stroke-width:2px;
    classDef lab fill:#cce5ff,stroke:#007bff,stroke-width:2px;
    classDef component fill:#d4edda,stroke:#155724,stroke-width:2px;
```
