# anumag1/vigenere-java architecture

> Architecture diagram of the GitHub repository anumag1/vigenere-java, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/anumag1/vigenere-java
- Repository: https://github.com/anumag1/vigenere-java

## Overview

##### Main Components
- User Interface (Frame.java): This component likely creates the application window where users enter the text and key.
- Business Logic (Vigenere.java): This file implements the actual Vigenère cipher algorithm for both encryption and decryption.
- Application Entry Point (Main.java): This file initializes the application, setting up the UI and orchestrating interactions between components.

##### Relationships and Interactions
- The entry point (Main.java) is responsible for launching the UI by instantiating the Frame.
- The Frame (GUI component) handles user inputs and calls the business logic (Vigenere.java) to perform encryption or decryption.
- The result from the Vigenere cipher logic is then displayed on the UI.

##### Architectural Patterns and Design Principles
- Presentation Layer: Frame.java (user interface)
- Business Logic Layer: Vigenere.java (encryption/decryption algorithm)
- Application Layer: Main.java (application lifecycle management)
- This separation ensures that UI changes do not directly affect the cipher logic.

##### Relevant Technologies and Frameworks
- As it is a Java project, note the use of Java (and likely Swing or AWT for the Frame) as the core development technology.
- If there are any specific libraries mentioned in another configuration (none here), include them. For now, just highlight the use of Java for desktop application development.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Application Layer"
        Main["Main.java – Application Entry"]:::app
    end

    subgraph "Presentation Layer"
        Frame["Frame.java – User Interface"]:::ui
    end

    subgraph "Business Logic Layer"
        Vigenere["Vigenere.java – Encryption Algorithm"]:::logic
    end

    Main -->|"launches"| Frame
    Frame -->|"calls"| Vigenere

    click Main "https://github.com/anumag1/vigenere-java/blob/main/src/vigenere/Main.java"
    click Frame "https://github.com/anumag1/vigenere-java/blob/main/src/vigenere/Frame.java"
    click Vigenere "https://github.com/anumag1/vigenere-java/blob/main/src/vigenere/Vigenere.java"

    classDef app fill:#f9c,stroke:#333,stroke-width:2px;
    classDef ui fill:#bbf,stroke:#333,stroke-width:2px;
    classDef logic fill:#bfb,stroke:#333,stroke-width:2px;
```
