# mohhhmed/aes-encryption-decryption-using-ecdh-key architecture

> Architecture diagram of the GitHub repository mohhhmed/aes-encryption-decryption-using-ecdh-key, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mohhhmed/aes-encryption-decryption-using-ecdh-key
- Repository: https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key

## Overview

This is a Tkinter educational app for elliptic-curve key exchange and AES message encryption/decryption. The intended workflow is to configure a curve, establish ECDH key material, configure AES, then encrypt or decrypt messages through the app’s tabs. The README also points users to aes.pdf, but its contents and role are not shown. The excerpts support GUI setup, curve setup, AES component construction, and an encryption call; other cryptographic internals and key-exchange wiring are not shown.

Main entry points: [`app.py`](https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py) (Tabbed GUI), [`aes.pdf`](https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/aes.pdf) (AES PDF)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Application interface"]
  node_launch["App launcher<br/>[app.py]"]
  node_gui["Tabbed GUI<br/>[app.py]"]
end

subgraph group_keyexchange["Key exchange"]
  node_curve_setup["Curve setup<br/>[app.py]"]
  node_curve_math["Curve operations<br/>[app.py]"]
  node_ecdh["ECDH key exchange<br/>[app.py]"]
end

subgraph group_aes["AES processing"]
  node_gf256["GF&#40;256&#41; arithmetic<br/>[app.py]"]
  node_sbox["S-box generation<br/>[app.py]"]
  node_aes128["AES-128<br/>[app.py]"]
  node_encrypt["Message encryption<br/>[app.py]"]
  node_decrypt["Message decryption<br/>[app.py]"]
end

node_user(("User"))
node_manual["AES PDF<br/>[aes.pdf]"]

node_user -->|"runs"| node_launch
node_launch -->|"launches"| node_gui
node_gui -->|"offers tab"| node_curve_setup
node_curve_setup -->|"creates curve"| node_curve_math
node_curve_setup -->|"configures for"| node_ecdh
node_gui -->|"configures AES"| node_gf256
node_gui -->|"generates"| node_sbox
node_gui -->|"creates"| node_aes128
node_gui -->|"encrypts message"| node_encrypt
node_gui -->|"offers tab"| node_decrypt
node_user -->|"opens"| node_manual

click node_launch "https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py"
click node_gui "https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py"
click node_curve_setup "https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py"
click node_curve_math "https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py"
click node_ecdh "https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py"
click node_gf256 "https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py"
click node_sbox "https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py"
click node_aes128 "https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py"
click node_encrypt "https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py"
click node_decrypt "https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py"
click node_manual "https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/aes.pdf"

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_launch,node_gui,node_user toneBlue
class node_curve_setup,node_curve_math,node_ecdh toneAmber
class node_gf256,node_sbox,node_aes128,node_encrypt,node_decrypt toneMint
class node_manual toneTeal
```

## Components

### Application interface

- [App launcher](https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py): `app.py`
- [Tabbed GUI](https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py): `app.py`

### Key exchange

- [Curve setup](https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py): `app.py`
- [Curve operations](https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py): `app.py`
- [ECDH key exchange](https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py): `app.py`

### AES processing

- [GF(256) arithmetic](https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py): `app.py`
- [S-box generation](https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py): `app.py`
- [AES-128](https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py): `app.py`
- [Message encryption](https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py): `app.py`
- [Message decryption](https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/app.py): `app.py`

### Other components

- **User**
- [AES PDF](https://github.com/mohhhmed/aes-encryption-decryption-using-ecdh-key/blob/main/aes.pdf): `aes.pdf`

## Connections

- User → App launcher: runs (evidence: `README.md`)
- App launcher → Tabbed GUI: launches (evidence: `app.py`)
- Tabbed GUI → Curve setup: offers tab (evidence: `app.py`)
- Curve setup → Curve operations: creates curve (evidence: `app.py`)
- Curve setup → ECDH key exchange: configures for (evidence: `app.py`)
- Tabbed GUI → GF(256) arithmetic: configures AES (evidence: `app.py`)
- Tabbed GUI → S-box generation: generates (evidence: `app.py`)
- Tabbed GUI → AES-128: creates (evidence: `app.py`)
- Tabbed GUI → Message encryption: encrypts message (evidence: `app.py`)
- Tabbed GUI → Message decryption: offers tab (evidence: `app.py`)
- User → AES PDF: opens (evidence: `README.md`)
