# utkarshshinde873-ui/securdata_app architecture

> Architecture diagram of the GitHub repository utkarshshinde873-ui/securdata_app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/utkarshshinde873-ui/securdata_app
- Repository: https://github.com/utkarshshinde873-ui/securdata_app

## Overview

SecureData is a browser-based tool for encrypting and decrypting text or files with password-derived AES-GCM keys. Users enter through the dashboard, then choose encryption or decryption; each workflow invokes the shared crypto module, with packages serialized or parsed and results copied or downloaded locally. The excerpts support these direct page-to-crypto calls and show no server-side storage or external crypto service. Details of the decryption file-upload parsing path are partly omitted, so the graph limits itself to the visible calls.

Main entry points: [`app/encrypt/page.tsx`](https://github.com/utkarshshinde873-ui/securdata_app/blob/main/app/encrypt/page.tsx) (Encrypt workflow), [`app/decrypt/page.tsx`](https://github.com/utkarshshinde873-ui/securdata_app/blob/main/app/decrypt/page.tsx) (Decrypt workflow), [`app/page.tsx`](https://github.com/utkarshshinde873-ui/securdata_app/blob/main/app/page.tsx) (Dashboard), [`lib/crypto.ts`](https://github.com/utkarshshinde873-ui/securdata_app/blob/main/lib/crypto.ts) (Crypto engine)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Browser experience"]
  node_dashboard["Dashboard<br/>[page.tsx]"]
  node_encrypt_page["Encrypt workflow<br/>[page.tsx]"]
  node_decrypt_page["Decrypt workflow<br/>[page.tsx]"]
  node_transitions["Page transition<br/>[PageTransition.tsx]"]
end

subgraph group_crypto["Cryptography and packages"]
  node_crypto_engine["Crypto engine<br/>[crypto.ts]"]
  node_package_format["Package format<br/>[crypto.ts]"]
  node_local_downloads["Local downloads<br/>[crypto.ts]"]
end

node_user(("User"))

node_user -->|"opens"| node_dashboard
node_dashboard -->|"navigates"| node_encrypt_page
node_dashboard -->|"navigates"| node_decrypt_page
node_user -->|"provides input"| node_encrypt_page
node_encrypt_page -->|"encrypts text or file"| node_crypto_engine
node_crypto_engine -->|"creates package"| node_package_format
node_encrypt_page -->|"serializes package"| node_package_format
node_user -->|"provides package and password"| node_decrypt_page
node_decrypt_page -->|"parses pasted package"| node_package_format
node_decrypt_page -->|"decrypts text or data"| node_crypto_engine
node_encrypt_page -.->|"downloads package"| node_local_downloads
node_decrypt_page -->|"downloads result"| node_local_downloads

click node_dashboard "https://github.com/utkarshshinde873-ui/securdata_app/blob/main/app/page.tsx"
click node_encrypt_page "https://github.com/utkarshshinde873-ui/securdata_app/blob/main/app/encrypt/page.tsx"
click node_decrypt_page "https://github.com/utkarshshinde873-ui/securdata_app/blob/main/app/decrypt/page.tsx"
click node_transitions "https://github.com/utkarshshinde873-ui/securdata_app/blob/main/app/components/PageTransition.tsx"
click node_crypto_engine "https://github.com/utkarshshinde873-ui/securdata_app/blob/main/lib/crypto.ts"
click node_package_format "https://github.com/utkarshshinde873-ui/securdata_app/blob/main/lib/crypto.ts"
click node_local_downloads "https://github.com/utkarshshinde873-ui/securdata_app/blob/main/lib/crypto.ts"

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_dashboard,node_encrypt_page,node_decrypt_page,node_transitions,node_user toneBlue
class node_crypto_engine,node_package_format,node_local_downloads toneAmber
```

## Components

### Browser experience

- [Dashboard](https://github.com/utkarshshinde873-ui/securdata_app/blob/main/app/page.tsx): `app/page.tsx`
- [Encrypt workflow](https://github.com/utkarshshinde873-ui/securdata_app/blob/main/app/encrypt/page.tsx): `app/encrypt/page.tsx`
- [Decrypt workflow](https://github.com/utkarshshinde873-ui/securdata_app/blob/main/app/decrypt/page.tsx): `app/decrypt/page.tsx`
- [Page transition](https://github.com/utkarshshinde873-ui/securdata_app/blob/main/app/components/PageTransition.tsx): `app/components/PageTransition.tsx`

### Cryptography and packages

- [Crypto engine](https://github.com/utkarshshinde873-ui/securdata_app/blob/main/lib/crypto.ts): `lib/crypto.ts`
- [Package format](https://github.com/utkarshshinde873-ui/securdata_app/blob/main/lib/crypto.ts): `lib/crypto.ts`
- [Local downloads](https://github.com/utkarshshinde873-ui/securdata_app/blob/main/lib/crypto.ts): `lib/crypto.ts`

### Other components

- **User**

## Connections

- User → Dashboard: opens (evidence: `README.md`)
- Dashboard → Encrypt workflow: navigates (evidence: `app/page.tsx`)
- Dashboard → Decrypt workflow: navigates (evidence: `app/page.tsx`)
- User → Encrypt workflow: provides input (evidence: `app/encrypt/page.tsx`)
- Encrypt workflow → Crypto engine: encrypts text or file (evidence: `app/encrypt/page.tsx`)
- Crypto engine → Package format: creates package (evidence: `lib/crypto.ts`)
- Encrypt workflow → Package format: serializes package (evidence: `app/encrypt/page.tsx`)
- User → Decrypt workflow: provides package and password (evidence: `app/decrypt/page.tsx`)
- Decrypt workflow → Package format: parses pasted package (evidence: `app/decrypt/page.tsx`)
- Decrypt workflow → Crypto engine: decrypts text or data (evidence: `app/decrypt/page.tsx`)
- Encrypt workflow → Local downloads: downloads package (evidence: `app/encrypt/page.tsx`)
- Decrypt workflow → Local downloads: downloads result (evidence: `app/decrypt/page.tsx`)
