# h-ssiqueira/cryptography architecture

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

- Interactive diagram: https://gitdiagram.com/h-ssiqueira/cryptography
- Repository: https://github.com/h-ssiqueira/cryptography

## Overview

This repository is a collection of independent command-line cryptography programs, not a shared application. A user supplies a message and, where applicable, a key or mode; the selected program transforms or searches it and prints a result. The C programs cover classical ciphers, Morse conversion, and brute-force key search; a separate Python program implements XOR. Each program is standalone, with no shared runtime layer or inter-program calls. The graph reflects the README’s listed capabilities and the shown source; no unsampled integrations or shared orchestration are assumed.

Main entry points: [`Cryptography-C/Affine Cipher.c`](https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Affine%20Cipher.c) (Affine Cipher), [`Cryptography-C/Albam, Atbah, Atbash Ciphers.c`](https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Albam%2C%20Atbah%2C%20Atbash%20Ciphers.c) (Albam Atbah Atbash), [`Cryptography-C/Caesar Cipher.c`](https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Caesar%20Cipher.c) (Caesar Cipher), [`Cryptography-C/Rail Fence Cipher.c`](https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Rail%20Fence%20Cipher.c) (Rail Fence Cipher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_c_classical["C Classical Ciphers"]
  node_affine["Affine Cipher<br/>[Affine Cipher.c]"]
  node_atbash["Albam Atbah Atbash"]
  node_caesar["Caesar Cipher<br/>[Caesar Cipher.c]"]
  node_rail["Rail Fence Cipher"]
  node_rotation["Rotation Cipher<br/>[Rotation Cipher.c]"]
  node_vigenere["Vigenere Cipher<br/>[Vigenere Cipher.c]"]
  node_xor_c["XOR Cipher<br/>[XOR Cipher.c]"]
end

subgraph group_c_other["C Other Tools"]
  node_brute["Brute Force Search<br/>[Brute Force.c]"]
  node_morse["Morse Converter<br/>[Morse Code.c]"]
end

subgraph group_python["Python Cipher"]
  node_xor_py["Python XOR Cipher<br/>[XOR_Cipher.py]"]
end

node_user(("User"))
node_terminal(("Console Output"))

node_user -->|"enters message"| node_affine
node_affine -->|"prints result"| node_terminal
node_user -->|"enters message"| node_atbash
node_atbash -->|"prints ciphers"| node_terminal
node_user -->|"enters mode"| node_caesar
node_caesar -->|"prints result"| node_terminal
node_user -->|"enters mode"| node_rail
node_rail -->|"prints result"| node_terminal
node_user -->|"enters mode"| node_rotation
node_rotation -->|"prints result"| node_terminal
node_user -->|"enters mode"| node_vigenere
node_vigenere -->|"prints result"| node_terminal
node_user -->|"enters key"| node_xor_c
node_xor_c -->|"prints result"| node_terminal
node_user -->|"starts search"| node_brute
node_brute -->|"prints discovery"| node_terminal
node_user -->|"enters message"| node_morse
node_morse -->|"prints Morse"| node_terminal
node_user -->|"enters key"| node_xor_py
node_xor_py -->|"prints result"| node_terminal

click node_affine "https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Affine%20Cipher.c"
click node_atbash "https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Albam%2C%20Atbah%2C%20Atbash%20Ciphers.c"
click node_caesar "https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Caesar%20Cipher.c"
click node_rail "https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Rail%20Fence%20Cipher.c"
click node_rotation "https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Rotation%20Cipher.c"
click node_vigenere "https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Vigenere%20Cipher.c"
click node_xor_c "https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/XOR%20Cipher.c"
click node_brute "https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Brute%20Force.c"
click node_morse "https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Morse%20Code.c"
click node_xor_py "https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-Python/XOR_Cipher.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_affine,node_atbash,node_caesar,node_rail,node_rotation,node_vigenere,node_xor_c,node_user toneBlue
class node_brute,node_morse toneAmber
class node_xor_py toneMint
class node_terminal toneIndigo
```

## Components

### C Classical Ciphers

- [Affine Cipher](https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Affine%20Cipher.c): `Cryptography-C/Affine Cipher.c`
- [Albam Atbah Atbash](https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Albam%2C%20Atbah%2C%20Atbash%20Ciphers.c): `Cryptography-C/Albam, Atbah, Atbash Ciphers.c`
- [Caesar Cipher](https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Caesar%20Cipher.c): `Cryptography-C/Caesar Cipher.c`
- [Rail Fence Cipher](https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Rail%20Fence%20Cipher.c): `Cryptography-C/Rail Fence Cipher.c`
- [Rotation Cipher](https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Rotation%20Cipher.c): `Cryptography-C/Rotation Cipher.c`
- [Vigenere Cipher](https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Vigenere%20Cipher.c): `Cryptography-C/Vigenere Cipher.c`
- [XOR Cipher](https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/XOR%20Cipher.c): `Cryptography-C/XOR Cipher.c`

### C Other Tools

- [Brute Force Search](https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Brute%20Force.c): `Cryptography-C/Brute Force.c`
- [Morse Converter](https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-C/Morse%20Code.c): `Cryptography-C/Morse Code.c`

### Python Cipher

- [Python XOR Cipher](https://github.com/h-ssiqueira/cryptography/blob/master/Cryptography-Python/XOR_Cipher.py): `Cryptography-Python/XOR_Cipher.py`

### Other components

- **User**
- **Console Output**

## Connections

- User → Affine Cipher: enters message (evidence: `Cryptography-C/Affine Cipher.c`)
- Affine Cipher → Console Output: prints result (evidence: `Cryptography-C/Affine Cipher.c`)
- User → Albam Atbah Atbash: enters message (evidence: `Cryptography-C/Albam, Atbah, Atbash Ciphers.c`)
- Albam Atbah Atbash → Console Output: prints ciphers (evidence: `Cryptography-C/Albam, Atbah, Atbash Ciphers.c`)
- User → Caesar Cipher: enters mode (evidence: `Cryptography-C/Caesar Cipher.c`)
- Caesar Cipher → Console Output: prints result (evidence: `Cryptography-C/Caesar Cipher.c`)
- User → Rail Fence Cipher: enters mode (evidence: `Cryptography-C/Rail Fence Cipher.c`)
- Rail Fence Cipher → Console Output: prints result (evidence: `Cryptography-C/Rail Fence Cipher.c`)
- User → Rotation Cipher: enters mode (evidence: `Cryptography-C/Rotation Cipher.c`)
- Rotation Cipher → Console Output: prints result (evidence: `Cryptography-C/Rotation Cipher.c`)
- User → Vigenere Cipher: enters mode (evidence: `Cryptography-C/Vigenere Cipher.c`)
- Vigenere Cipher → Console Output: prints result (evidence: `Cryptography-C/Vigenere Cipher.c`)
- User → XOR Cipher: enters key (evidence: `Cryptography-C/XOR Cipher.c`)
- XOR Cipher → Console Output: prints result (evidence: `Cryptography-C/XOR Cipher.c`)
- User → Brute Force Search: starts search (evidence: `Cryptography-C/Brute Force.c`)
- Brute Force Search → Console Output: prints discovery (evidence: `Cryptography-C/Brute Force.c`)
- User → Morse Converter: enters message (evidence: `Cryptography-C/Morse Code.c`)
- Morse Converter → Console Output: prints Morse (evidence: `Cryptography-C/Morse Code.c`)
- User → Python XOR Cipher: enters key (evidence: `Cryptography-Python/XOR_Cipher.py`)
- Python XOR Cipher → Console Output: prints result (evidence: `Cryptography-Python/XOR_Cipher.py`)
