# lwis47/animated-java-bankingsystem architecture

> Architecture diagram of the GitHub repository lwis47/animated-java-bankingsystem, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lwis47/animated-java-bankingsystem
- Repository: https://github.com/lwis47/animated-java-bankingsystem

## Overview

Cypher Bank ATM is a local, menu-driven Java simulation. Customers authenticate to perform account and transaction tasks; administrators set up or log in to manage accounts and bank settings. Both workflows operate on local files, with salted credential hashes and a one-time legacy-data migration. The single source file combines these responsibilities, so nodes describe product-level components rather than separate modules. Relationships rely on the README and shown excerpts; unsampled implementation details are not inferred.

Main entry points: [`BankingSystem.java`](https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java) (Customer operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Console interaction"]
  node_console["Console menus<br/>[BankingSystem.java]"]
  node_atm_display["ATM display<br/>[BankingSystem.java]"]
  node_tones["Confirmation tones<br/>[BankingSystem.java]"]
end

subgraph group_banking["Banking workflows"]
  node_customer_auth["Customer login<br/>[BankingSystem.java]"]
  node_customer_ops["Customer operations<br/>[BankingSystem.java]"]
  node_transfer["Account transfers<br/>[BankingSystem.java]"]
  node_statements["Mini statements<br/>[BankingSystem.java]"]
  node_admin_auth["Admin setup and login<br/>[BankingSystem.java]"]
  node_admin_tools["Admin account tools<br/>[BankingSystem.java]"]
  node_bank_stats["Bank statistics<br/>[BankingSystem.java]"]
  node_receipts["Transaction receipts<br/>[BankingSystem.java]"]
end

subgraph group_local["Local data and security"]
  node_credential_security["Credential security<br/>[BankingSystem.java]"]
  node_account_storage[("Account storage<br/>[BankingSystem.java]")]
  node_admin_storage[("Admin settings<br/>[BankingSystem.java]")]
  node_legacy_migration["Legacy migration<br/>[BankingSystem.java]"]
end

node_user(("Customer or admin"))

node_user -->|"uses"| node_console
node_console -->|"offers login"| node_customer_auth
node_customer_auth -->|"unlocks access"| node_customer_ops
node_console -->|"offers login"| node_admin_auth
node_admin_auth -->|"unlocks access"| node_admin_tools
node_customer_ops -->|"includes"| node_transfer
node_customer_ops -->|"includes"| node_statements
node_customer_ops -->|"saves changes"| node_account_storage
node_admin_tools -->|"saves changes"| node_account_storage
node_bank_stats -->|"reads accounts"| node_account_storage
node_customer_auth -->|"verifies PIN"| node_credential_security
node_admin_auth -->|"verifies password"| node_credential_security
node_credential_security -->|"stores hash"| node_admin_storage
node_customer_ops -->|"prints receipt"| node_receipts
node_customer_ops -->|"shows progress"| node_atm_display
node_admin_tools -.->|"shows feedback"| node_atm_display
node_atm_display -->|"may play"| node_tones
node_legacy_migration -->|"converts data"| node_account_storage

click node_console "https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java"
click node_atm_display "https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java"
click node_tones "https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java"
click node_customer_auth "https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java"
click node_customer_ops "https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java"
click node_transfer "https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java"
click node_statements "https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java"
click node_admin_auth "https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java"
click node_admin_tools "https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java"
click node_bank_stats "https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java"
click node_receipts "https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java"
click node_credential_security "https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java"
click node_account_storage "https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java"
click node_admin_storage "https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java"
click node_legacy_migration "https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java"

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_console,node_atm_display,node_tones toneBlue
class node_customer_auth,node_customer_ops,node_transfer,node_statements,node_admin_auth,node_admin_tools,node_bank_stats,node_receipts toneAmber
class node_credential_security,node_account_storage,node_admin_storage,node_legacy_migration toneMint
class node_user toneIndigo
```

## Components

### Console interaction

- [Console menus](https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java): `BankingSystem.java`
- [ATM display](https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java): `BankingSystem.java`
- [Confirmation tones](https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java): `BankingSystem.java`

### Banking workflows

- [Customer login](https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java): `BankingSystem.java`
- [Customer operations](https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java): `BankingSystem.java`
- [Account transfers](https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java): `BankingSystem.java`
- [Mini statements](https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java): `BankingSystem.java`
- [Admin setup and login](https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java): `BankingSystem.java`
- [Admin account tools](https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java): `BankingSystem.java`
- [Bank statistics](https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java): `BankingSystem.java`
- [Transaction receipts](https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java): `BankingSystem.java`

### Local data and security

- [Credential security](https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java): `BankingSystem.java`
- [Account storage](https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java): `BankingSystem.java`
- [Admin settings](https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java): `BankingSystem.java`
- [Legacy migration](https://github.com/lwis47/animated-java-bankingsystem/blob/main/BankingSystem.java): `BankingSystem.java`

### Other components

- **Customer or admin**

## Connections

- Customer or admin → Console menus: uses (evidence: `README.md`)
- Console menus → Customer login: offers login (evidence: `README.md`)
- Customer login → Customer operations: unlocks access (evidence: `README.md`)
- Console menus → Admin setup and login: offers login (evidence: `README.md`)
- Admin setup and login → Admin account tools: unlocks access (evidence: `README.md`)
- Customer operations → Account transfers: includes (evidence: `README.md`)
- Customer operations → Mini statements: includes (evidence: `README.md`)
- Customer operations → Account storage: saves changes (evidence: `BankingSystem.java`)
- Admin account tools → Account storage: saves changes (evidence: `BankingSystem.java`)
- Bank statistics → Account storage: reads accounts (evidence: `README.md`)
- Customer login → Credential security: verifies PIN (evidence: `README.md`)
- Admin setup and login → Credential security: verifies password (evidence: `README.md`)
- Credential security → Admin settings: stores hash (evidence: `README.md`)
- Customer operations → Transaction receipts: prints receipt (evidence: `BankingSystem.java`)
- Customer operations → ATM display: shows progress (evidence: `README.md`)
- Admin account tools → ATM display: shows feedback (evidence: `BankingSystem.java`)
- ATM display → Confirmation tones: may play (evidence: `README.md`)
- Legacy migration → Account storage: converts data (evidence: `README.md`)
