# raghulr2023/stegnography-detection-tool architecture

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

- Interactive diagram: https://gitdiagram.com/raghulr2023/stegnography-detection-tool
- Repository: https://github.com/raghulr2023/stegnography-detection-tool

## Overview

This is a local steganography analysis tool with both a Tkinter GUI and a command-line entry point. The main workflow selects a file, detects its type, extracts or inspects hidden data, and presents results; comprehensive analysis also writes a report. The core supports image and audio LSB extraction, text whitespace detection, entropy, metadata, and common-encoding checks, plus image embedding. GUI-to-core and sampled analysis calls are evidenced; CLI dispatch and the embedding entry path are not fully shown.

Main entry points: [`Stegnography-detection-tool/stego_gui.py`](https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_gui.py) (GUI), [`Stegnography-detection-tool/stego_tool.py`](https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py) (Analysis Tool)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["User Interfaces"]
  node_gui["GUI<br/>[stego_gui.py]"]
  node_cli["CLI<br/>[stego_tool.py]"]
end

subgraph group_analysis["Analysis Core"]
  node_tool["Analysis Tool<br/>[stego_tool.py]"]
  node_filetype["File Detection<br/>[stego_tool.py]"]
  node_image["Image LSB<br/>[stego_tool.py]"]
  node_audio["Audio LSB<br/>[stego_tool.py]"]
  node_whitespace["Whitespace Scan<br/>[stego_tool.py]"]
  node_entropy["Entropy Check<br/>[stego_tool.py]"]
  node_metadata["Metadata Scan<br/>[stego_tool.py]"]
  node_encoding["Encoding Check<br/>[stego_tool.py]"]
  node_embedding["Image Embedding<br/>[stego_tool.py]"]
end

subgraph group_outputs["Results"]
  node_display["Result Display<br/>[stego_gui.py]"]
  node_report["Analysis Report<br/>[stego_tool.py]"]
end

node_user(("Analyst"))

node_user -->|"selects file"| node_gui
node_user -->|"provides arguments"| node_cli
node_gui -->|"invokes analysis"| node_tool
node_tool -->|"detects type"| node_filetype
node_tool -->|"calculates entropy"| node_entropy
node_tool -->|"extracts metadata"| node_metadata
node_tool -->|"extracts image LSB"| node_image
node_tool -->|"extracts audio LSB"| node_audio
node_tool -->|"scans whitespace"| node_whitespace
node_tool -->|"checks encodings"| node_encoding
node_tool -->|"writes report"| node_report
node_gui -->|"detects type"| node_filetype
node_gui -->|"calculates entropy"| node_entropy
node_gui -->|"requests metadata"| node_metadata
node_gui -->|"requests extraction"| node_image
node_gui -->|"requests extraction"| node_audio
node_gui -->|"requests scan"| node_whitespace
node_gui -->|"checks encodings"| node_encoding
node_gui -->|"renders results"| node_display
node_cli -.->|"dispatches analysis"| node_tool
node_cli -.->|"dispatches embedding"| node_embedding

click node_gui "https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_gui.py"
click node_cli "https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py"
click node_tool "https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py"
click node_filetype "https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py"
click node_image "https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py"
click node_audio "https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py"
click node_whitespace "https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py"
click node_entropy "https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py"
click node_metadata "https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py"
click node_encoding "https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py"
click node_embedding "https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py"
click node_display "https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_gui.py"
click node_report "https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.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_gui,node_cli toneBlue
class node_tool,node_filetype,node_image,node_audio,node_whitespace,node_entropy,node_metadata,node_encoding,node_embedding toneAmber
class node_display,node_report toneMint
class node_user toneIndigo
```

## Components

### User Interfaces

- [GUI](https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_gui.py): `Stegnography-detection-tool/stego_gui.py`
- [CLI](https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py): `Stegnography-detection-tool/stego_tool.py`

### Analysis Core

- [Analysis Tool](https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py): `Stegnography-detection-tool/stego_tool.py`
- [File Detection](https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py): `Stegnography-detection-tool/stego_tool.py`
- [Image LSB](https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py): `Stegnography-detection-tool/stego_tool.py`
- [Audio LSB](https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py): `Stegnography-detection-tool/stego_tool.py`
- [Whitespace Scan](https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py): `Stegnography-detection-tool/stego_tool.py`
- [Entropy Check](https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py): `Stegnography-detection-tool/stego_tool.py`
- [Metadata Scan](https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py): `Stegnography-detection-tool/stego_tool.py`
- [Encoding Check](https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py): `Stegnography-detection-tool/stego_tool.py`
- [Image Embedding](https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py): `Stegnography-detection-tool/stego_tool.py`

### Results

- [Result Display](https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_gui.py): `Stegnography-detection-tool/stego_gui.py`
- [Analysis Report](https://github.com/raghulr2023/stegnography-detection-tool/blob/main/Stegnography-detection-tool/stego_tool.py): `Stegnography-detection-tool/stego_tool.py`

### Other components

- **Analyst**

## Connections

- Analyst → GUI: selects file (evidence: `Stegnography-detection-tool/stego_gui.py`)
- Analyst → CLI: provides arguments (evidence: `Stegnography-detection-tool/stego_tool.py`)
- GUI → Analysis Tool: invokes analysis (evidence: `Stegnography-detection-tool/stego_gui.py`)
- Analysis Tool → File Detection: detects type (evidence: `Stegnography-detection-tool/stego_tool.py`)
- Analysis Tool → Entropy Check: calculates entropy (evidence: `Stegnography-detection-tool/stego_tool.py`)
- Analysis Tool → Metadata Scan: extracts metadata (evidence: `Stegnography-detection-tool/stego_tool.py`)
- Analysis Tool → Image LSB: extracts image LSB (evidence: `Stegnography-detection-tool/stego_tool.py`)
- Analysis Tool → Audio LSB: extracts audio LSB (evidence: `Stegnography-detection-tool/stego_tool.py`)
- Analysis Tool → Whitespace Scan: scans whitespace (evidence: `Stegnography-detection-tool/stego_tool.py`)
- Analysis Tool → Encoding Check: checks encodings (evidence: `Stegnography-detection-tool/stego_tool.py`)
- Analysis Tool → Analysis Report: writes report (evidence: `Stegnography-detection-tool/stego_tool.py`)
- GUI → File Detection: detects type (evidence: `Stegnography-detection-tool/stego_gui.py`)
- GUI → Entropy Check: calculates entropy (evidence: `Stegnography-detection-tool/stego_gui.py`)
- GUI → Metadata Scan: requests metadata (evidence: `Stegnography-detection-tool/stego_gui.py`)
- GUI → Image LSB: requests extraction (evidence: `Stegnography-detection-tool/stego_gui.py`)
- GUI → Audio LSB: requests extraction (evidence: `Stegnography-detection-tool/stego_gui.py`)
- GUI → Whitespace Scan: requests scan (evidence: `Stegnography-detection-tool/stego_gui.py`)
- GUI → Encoding Check: checks encodings (evidence: `Stegnography-detection-tool/stego_gui.py`)
- GUI → Result Display: renders results (evidence: `Stegnography-detection-tool/stego_gui.py`)
- CLI → Analysis Tool: dispatches analysis (evidence: `Stegnography-detection-tool/stego_tool.py`)
- CLI → Image Embedding: dispatches embedding (evidence: `Stegnography-detection-tool/stego_tool.py`)
