# openwall/john-packages architecture

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

- Interactive diagram: https://gitdiagram.com/openwall/john-packages
- Repository: https://github.com/openwall/john-packages

## Overview

This repository packages and distributes Openwall’s John the Ripper rather than implementing the password-cracking engine. Its user-facing workflow is to obtain a platform package, install or run it, and use the included `john` application. The README identifies Windows, macOS, Snap, Flatpak, and Docker distributions. The sampled source excerpts are configuration files unrelated to runtime packaging, so the graph reflects documented package offerings; it does not infer build steps or internal calls.

Main entry points: [`deploy/docker/Dockerfile`](https://github.com/openwall/john-packages/blob/main/deploy/docker/Dockerfile) (Docker image), [`deploy/flatpak/com.openwall.John.json`](https://github.com/openwall/john-packages/blob/main/deploy/flatpak/com.openwall.John.json) (Flatpak package), [`snapcraft.yaml`](https://github.com/openwall/john-packages/blob/main/snapcraft.yaml) (Snap package), [`deploy/Windows-Delivery.yml`](https://github.com/openwall/john-packages/blob/main/deploy/Windows-Delivery.yml) (Windows package)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_package_specs["Package definitions"]
end

subgraph group_linux_delivery["Linux delivery"]
  node_docker_image["Docker image"]
  node_flatpak_package["Flatpak package"]
  node_snap_package["Snap package<br/>[snapcraft.yaml]"]
end

subgraph group_platform_packages["Platform packages"]
  node_windows_package["Windows package"]
  node_macos_package["macOS package"]
end

node_user(("Package user"))
node_john["John the Ripper"]

node_user -->|"downloads and installs"| node_windows_package
node_user -->|"obtains"| node_macos_package
node_user -->|"runs"| node_docker_image
node_user -->|"installs"| node_flatpak_package
node_user -->|"installs"| node_snap_package
node_windows_package -->|"includes"| node_john
node_macos_package -->|"packages"| node_john
node_docker_image -->|"contains"| node_john
node_flatpak_package -->|"packages"| node_john
node_snap_package -->|"packages"| node_john

click node_windows_package "https://github.com/openwall/john-packages/blob/main/deploy/Windows-Delivery.yml"
click node_macos_package "https://github.com/openwall/john-packages/blob/main/deploy/Mac_ARM-Delivery.yml"
click node_docker_image "https://github.com/openwall/john-packages/blob/main/deploy/docker/Dockerfile"
click node_flatpak_package "https://github.com/openwall/john-packages/blob/main/deploy/flatpak/com.openwall.John.json"
click node_snap_package "https://github.com/openwall/john-packages/blob/main/snapcraft.yaml"

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_docker_image,node_flatpak_package,node_snap_package toneAmber
class node_windows_package,node_macos_package toneMint
class node_user toneBlue
class node_john toneIndigo
```

## Components

### Linux delivery

- [Docker image](https://github.com/openwall/john-packages/blob/main/deploy/docker/Dockerfile): `deploy/docker/Dockerfile`
- [Flatpak package](https://github.com/openwall/john-packages/blob/main/deploy/flatpak/com.openwall.John.json): `deploy/flatpak/com.openwall.John.json`
- [Snap package](https://github.com/openwall/john-packages/blob/main/snapcraft.yaml): `snapcraft.yaml`

### Platform packages

- [Windows package](https://github.com/openwall/john-packages/blob/main/deploy/Windows-Delivery.yml): `deploy/Windows-Delivery.yml`
- [macOS package](https://github.com/openwall/john-packages/blob/main/deploy/Mac_ARM-Delivery.yml): `deploy/Mac_ARM-Delivery.yml`

### Other components

- **Package user**
- **John the Ripper**

## Connections

- Package user → Windows package: downloads and installs (evidence: `readme.md`)
- Package user → macOS package: obtains (evidence: `readme.md`)
- Package user → Docker image: runs (evidence: `readme.md`)
- Package user → Flatpak package: installs (evidence: `readme.md`)
- Package user → Snap package: installs (evidence: `readme.md`)
- Windows package → John the Ripper: includes (evidence: `readme.md`)
- macOS package → John the Ripper: packages (evidence: `readme.md`)
- Docker image → John the Ripper: contains (evidence: `readme.md`)
- Flatpak package → John the Ripper: packages (evidence: `readme.md`)
- Snap package → John the Ripper: packages (evidence: `readme.md`)
