# rajdeepsengupta/steganography-dotnet6 architecture

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

- Interactive diagram: https://gitdiagram.com/rajdeepsengupta/steganography-dotnet6
- Repository: https://github.com/rajdeepsengupta/steganography-dotnet6

## Overview

This repository contains two .NET steganography applications: a console program and a .NET 6/Angular web app. In the web workflow, a user uploads an image, supplies text to encode or requests decoding, and receives an encoded image or decoded text. The backend stores image files and performs RGB least-significant-bit encoding/decoding. The README establishes the two applications; web API links are shown as unverified where the excerpts do not expose the frontend endpoint constants.

Main entry points: [`SteganographyDotnetCore/SteganographyDotnetCore/Controllers/SteganographyController.cs`](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Controllers/SteganographyController.cs) (API controller), [`SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.component.ts`](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.component.ts) (Steganography UI), [`SteganographyDotnetCore/SteganographyDotnetCore/Repository/SteganographyRepository.cs`](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Repository/SteganographyRepository.cs) (Codec repository), [`SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.module.ts`](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.module.ts) (App module)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_console["Console application"]
  node_console_program["Console runner<br/>[Program.cs]"]
  node_console_codec["Image codec<br/>[Steganography.cs]"]
  node_console_demo["Online demo"]
  node_console_utility["Console utilities<br/>[Utility.cs]"]
end

subgraph group_frontend["Angular frontend"]
  node_web_ui["Steganography UI<br/>[app.component.ts]"]
  node_web_service["HTTP client<br/>[app.service.ts]"]
  node_web_routes["UI routing<br/>[app.routing.ts]"]
  node_web_module["App module<br/>[app.module.ts]"]
  node_toast["Notifications<br/>[toaster.service.ts]"]
end

subgraph group_backend["Web backend"]
  node_api["API controller"]
  node_backend_utility["File utilities<br/>[Utility.cs]"]
  node_seed["Directory setup<br/>[Seed.cs]"]
  node_startup["Web startup<br/>[Program.cs]"]
end

subgraph group_domain["Steganography logic"]
  node_repository["Codec repository"]
  node_repository_contract["Repository contract"]
  node_request_models["Request models<br/>[EncodeDetailsAC.cs]"]
  node_decode_model["Decode request<br/>[DecodeDetailsAC.cs]"]
  node_constants["Codec constants<br/>[StringConstants.cs]"]
end

node_user(("User"))

node_user -->|"runs"| node_console_program
node_console_program -->|"invokes"| node_console_codec
node_console_demo -->|"uses"| node_console_codec
node_console_codec -->|"converts bits"| node_console_utility
node_user -->|"uses"| node_web_ui
node_web_ui -->|"calls"| node_web_service
node_web_ui -->|"shows alerts"| node_toast
node_web_module -->|"bootstraps"| node_web_ui
node_web_module -->|"registers"| node_web_routes
node_web_module -->|"provides"| node_web_service
node_web_routes -->|"routes to"| node_web_ui
node_web_service -.->|"sends requests"| node_api
node_api -->|"delegates"| node_repository
node_api -->|"gets paths"| node_backend_utility
node_api -->|"accepts encode"| node_request_models
node_api -->|"accepts decode"| node_decode_model
node_repository -->|"gets image path"| node_backend_utility
node_repository -->|"uses errors"| node_constants
node_startup -->|"registers"| node_repository
node_startup -->|"creates directories"| node_seed

click node_console_program "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/Steganography/Steganography/Program.cs"
click node_console_codec "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/Steganography/Steganography/Steganography.cs"
click node_console_demo "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/Steganography/Steganography/SteganographyOnlineDemo.cs"
click node_console_utility "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/Steganography/Steganography/Utility.cs"
click node_web_ui "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.component.ts"
click node_web_service "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.service.ts"
click node_web_routes "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.routing.ts"
click node_web_module "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.module.ts"
click node_toast "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/shared/toaster.service.ts"
click node_api "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Controllers/SteganographyController.cs"
click node_backend_utility "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Controllers/Utility.cs"
click node_seed "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Controllers/Seed.cs"
click node_startup "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Program.cs"
click node_repository "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Repository/SteganographyRepository.cs"
click node_repository_contract "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Repository/ISteganographyRepository.cs"
click node_request_models "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Models/EncodeDetailsAC.cs"
click node_decode_model "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Models/DecodeDetailsAC.cs"
click node_constants "https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Models/StringConstants.cs"

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_program,node_console_codec,node_console_demo,node_console_utility,node_user toneBlue
class node_web_ui,node_web_service,node_web_routes,node_web_module,node_toast toneAmber
class node_api,node_backend_utility,node_seed,node_startup toneMint
class node_repository,node_repository_contract,node_request_models,node_decode_model,node_constants toneRose
```

## Components

### Console application

- [Console runner](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/Steganography/Steganography/Program.cs): `Steganography/Steganography/Program.cs`
- [Image codec](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/Steganography/Steganography/Steganography.cs): `Steganography/Steganography/Steganography.cs`
- [Online demo](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/Steganography/Steganography/SteganographyOnlineDemo.cs): `Steganography/Steganography/SteganographyOnlineDemo.cs`
- [Console utilities](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/Steganography/Steganography/Utility.cs): `Steganography/Steganography/Utility.cs`

### Angular frontend

- [Steganography UI](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.component.ts): `SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.component.ts`
- [HTTP client](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.service.ts): `SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.service.ts`
- [UI routing](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.routing.ts): `SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.routing.ts`
- [App module](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.module.ts): `SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.module.ts`
- [Notifications](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/shared/toaster.service.ts): `SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/shared/toaster.service.ts`

### Web backend

- [API controller](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Controllers/SteganographyController.cs): `SteganographyDotnetCore/SteganographyDotnetCore/Controllers/SteganographyController.cs`
- [File utilities](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Controllers/Utility.cs): `SteganographyDotnetCore/SteganographyDotnetCore/Controllers/Utility.cs`
- [Directory setup](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Controllers/Seed.cs): `SteganographyDotnetCore/SteganographyDotnetCore/Controllers/Seed.cs`
- [Web startup](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Program.cs): `SteganographyDotnetCore/SteganographyDotnetCore/Program.cs`

### Steganography logic

- [Codec repository](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Repository/SteganographyRepository.cs): `SteganographyDotnetCore/SteganographyDotnetCore/Repository/SteganographyRepository.cs`
- [Repository contract](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Repository/ISteganographyRepository.cs): `SteganographyDotnetCore/SteganographyDotnetCore/Repository/ISteganographyRepository.cs`
- [Request models](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Models/EncodeDetailsAC.cs): `SteganographyDotnetCore/SteganographyDotnetCore/Models/EncodeDetailsAC.cs`
- [Decode request](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Models/DecodeDetailsAC.cs): `SteganographyDotnetCore/SteganographyDotnetCore/Models/DecodeDetailsAC.cs`
- [Codec constants](https://github.com/rajdeepsengupta/steganography-dotnet6/blob/master/SteganographyDotnetCore/SteganographyDotnetCore/Models/StringConstants.cs): `SteganographyDotnetCore/SteganographyDotnetCore/Models/StringConstants.cs`

### Other components

- **User**

## Connections

- User → Console runner: runs (evidence: `README.md`)
- Console runner → Image codec: invokes (evidence: `Steganography/Steganography/Program.cs`)
- Online demo → Image codec: uses (evidence: `Steganography/Steganography/SteganographyOnlineDemo.cs`)
- Image codec → Console utilities: converts bits (evidence: `Steganography/Steganography/Steganography.cs`)
- User → Steganography UI: uses (evidence: `README.md`)
- Steganography UI → HTTP client: calls (evidence: `SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.component.ts`)
- Steganography UI → Notifications: shows alerts (evidence: `SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.component.ts`)
- App module → Steganography UI: bootstraps (evidence: `SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.module.ts`)
- App module → UI routing: registers (evidence: `SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.module.ts`)
- App module → HTTP client: provides (evidence: `SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.module.ts`)
- UI routing → Steganography UI: routes to (evidence: `SteganographyDotnetCore/SteganographyDotnetCore/wwwroot/app/app.routing.ts`)
- HTTP client → API controller: sends requests
- API controller → Codec repository: delegates (evidence: `SteganographyDotnetCore/SteganographyDotnetCore/Controllers/SteganographyController.cs`)
- API controller → File utilities: gets paths (evidence: `SteganographyDotnetCore/SteganographyDotnetCore/Controllers/SteganographyController.cs`)
- API controller → Request models: accepts encode (evidence: `SteganographyDotnetCore/SteganographyDotnetCore/Controllers/SteganographyController.cs`)
- API controller → Decode request: accepts decode (evidence: `SteganographyDotnetCore/SteganographyDotnetCore/Controllers/SteganographyController.cs`)
- Codec repository → File utilities: gets image path (evidence: `SteganographyDotnetCore/SteganographyDotnetCore/Repository/SteganographyRepository.cs`)
- Codec repository → Codec constants: uses errors (evidence: `SteganographyDotnetCore/SteganographyDotnetCore/Repository/SteganographyRepository.cs`)
- Web startup → Codec repository: registers (evidence: `SteganographyDotnetCore/SteganographyDotnetCore/Program.cs`)
- Web startup → Directory setup: creates directories (evidence: `SteganographyDotnetCore/SteganographyDotnetCore/Program.cs`)
