# mohammedramadansallam/aegisvox-3layer architecture

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

- Interactive diagram: https://gitdiagram.com/mohammedramadansallam/aegisvox-3layer
- Repository: https://github.com/mohammedramadansallam/aegisvox-3layer

## Overview

AegisVox-3L is a desktop encrypted voice-messaging and MITM demonstration. A user chooses a sender or receiver role, records or loads a WAV, establishes a fingerprint-checkable RSA handshake, and sends framed voice chunks protected by AES and HMAC; the receiver reassembles and saves the audio. A third role relays traffic and demonstrates passive analysis and active attacks. The graph follows the documented workflow and excerpted calls; some links rely on the SOURCE INDEX or README because the relevant implementation excerpts are incomplete.

Main entry points: [`AegisVox.py`](https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/AegisVox.py) (Role wizard and workflow), [`aegisvox/peer.py`](https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/peer.py) (Full-duplex peer), [`aegisvox/mitm.py`](https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/mitm.py) (MITM relay and attacks), [`aegisvox/analysis.py`](https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/analysis.py) (Ciphertext analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and audio"]
  node_app["Role wizard and workflow<br/>[AegisVox.py]"]
  node_audio["Voice capture and WAV<br/>[audio.py]"]
end

subgraph group_secure["Secure messaging"]
  node_peer["Full-duplex peer<br/>[peer.py]"]
  node_protocol["Handshake and framing<br/>[protocol.py]"]
  node_crypto["Crypto and secure channel<br/>[crypto_layers.py]"]
  node_assembler["Voice chunk assembly<br/>[protocol.py]"]
end

subgraph group_attacks["MITM and attacks"]
  node_mitm["MITM relay and attacks<br/>[mitm.py]"]
  node_capture["Captured traffic<br/>[mitm.py]"]
end

subgraph group_analysis["Analysis and interface"]
  node_analysis["Ciphertext analysis<br/>[analysis.py]"]
  node_ui["Dark-theme widgets<br/>[ui_kit.py]"]
end

node_user(("Laptop user"))

node_user -->|"chooses role"| node_app
node_app -->|"records or loads"| node_audio
node_app -->|"sends voice"| node_peer
node_peer -->|"uses framing"| node_protocol
node_protocol -->|"establishes channel"| node_crypto
node_peer -->|"reassembles chunks"| node_assembler
node_app -->|"saves received WAV"| node_audio
node_app -->|"starts proxy"| node_mitm
node_mitm -->|"relays frames"| node_protocol
node_mitm -->|"records traffic"| node_capture
node_app -->|"presents attack analysis"| node_analysis
node_app -->|"builds screens"| node_ui
node_analysis -->|"tests captured records"| node_crypto
node_analysis -->|"renders ciphertext audio"| node_audio

click node_app "https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/AegisVox.py"
click node_audio "https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/audio.py"
click node_peer "https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/peer.py"
click node_protocol "https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/protocol.py"
click node_crypto "https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/crypto_layers.py"
click node_assembler "https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/protocol.py"
click node_mitm "https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/mitm.py"
click node_capture "https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/mitm.py"
click node_analysis "https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/analysis.py"
click node_ui "https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/ui_kit.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_app,node_audio,node_user toneBlue
class node_peer,node_protocol,node_crypto,node_assembler toneAmber
class node_mitm,node_capture toneMint
class node_analysis,node_ui toneRose
```

## Components

### App and audio

- [Role wizard and workflow](https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/AegisVox.py): `AegisVox.py`
- [Voice capture and WAV](https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/audio.py): `aegisvox/audio.py`

### Secure messaging

- [Full-duplex peer](https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/peer.py): `aegisvox/peer.py`
- [Handshake and framing](https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/protocol.py): `aegisvox/protocol.py`
- [Crypto and secure channel](https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/crypto_layers.py): `aegisvox/crypto_layers.py`
- [Voice chunk assembly](https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/protocol.py): `aegisvox/protocol.py`

### MITM and attacks

- [MITM relay and attacks](https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/mitm.py): `aegisvox/mitm.py`
- [Captured traffic](https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/mitm.py): `aegisvox/mitm.py`

### Analysis and interface

- [Ciphertext analysis](https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/analysis.py): `aegisvox/analysis.py`
- [Dark-theme widgets](https://github.com/mohammedramadansallam/aegisvox-3layer/blob/main/aegisvox/ui_kit.py): `aegisvox/ui_kit.py`

### Other components

- **Laptop user**

## Connections

- Laptop user → Role wizard and workflow: chooses role (evidence: `README.md`)
- Role wizard and workflow → Voice capture and WAV: records or loads (evidence: `README.md`)
- Role wizard and workflow → Full-duplex peer: sends voice (evidence: `AegisVox.py`)
- Full-duplex peer → Handshake and framing: uses framing (evidence: `aegisvox/peer.py`)
- Handshake and framing → Crypto and secure channel: establishes channel (evidence: `aegisvox/protocol.py`)
- Full-duplex peer → Voice chunk assembly: reassembles chunks (evidence: `aegisvox/peer.py`)
- Role wizard and workflow → Voice capture and WAV: saves received WAV (evidence: `AegisVox.py`)
- Role wizard and workflow → MITM relay and attacks: starts proxy (evidence: `AegisVox.py`)
- MITM relay and attacks → Handshake and framing: relays frames (evidence: `aegisvox/mitm.py`)
- MITM relay and attacks → Captured traffic: records traffic (evidence: `aegisvox/mitm.py`)
- Role wizard and workflow → Ciphertext analysis: presents attack analysis (evidence: `README.md`)
- Role wizard and workflow → Dark-theme widgets: builds screens (evidence: `AegisVox.py`)
- Ciphertext analysis → Crypto and secure channel: tests captured records (evidence: `aegisvox/analysis.py`)
- Ciphertext analysis → Voice capture and WAV: renders ciphertext audio (evidence: `aegisvox/analysis.py`)
