How basavarajathani-spec/secure-steganography works
Secure Image Transmission is a React/FastAPI application for encrypting an image, hiding its ciphertext in a lossless video, and recovering the image with the user-held key. The main workflow runs from the Encrypt or Decrypt page through the API service to FastAPI routes, which coordinate AES, payload framing, and video steganography. The graph also shows the landing page and shared upload/progress UI. Some frontend and backend relationships are documented or indexed rather than excerpted; those links are cited only where the supplied evidence supports them.
Main entry points: routes.py Encrypt/decrypt routes · App.jsx App routes · Encrypt.jsx Encrypt page · Decrypt.jsx Decrypt page
Components 19
Frontend experience
- App routes
frontend/src/App.jsx - Navigation
frontend/src/components/Navbar.jsx - Landing page
frontend/src/pages/Home.jsx - Encrypt page
frontend/src/pages/Encrypt.jsx - Decrypt page
frontend/src/pages/Decrypt.jsx - Upload card
frontend/src/components/UploadCard.jsx - Progress bar
frontend/src/components/ProgressBar.jsx - API client
frontend/src/services/api.js
API and files
- FastAPI app
backend/app/main.py - Encrypt/decrypt routes
backend/app/routes.py - Upload/output config
backend/app/config.py - Temporary uploads
backend/uploads - Generated files
backend/outputs
Image encryption
- AES encryption and keys
backend/encryption/aes_encrypt.py - AES decryption and verification
backend/encryption/aes_decrypt.py
Video steganography
- LSB video embedding
backend/steganography/embed.py - LSB video extraction
backend/steganography/extract.py - Payload framing
backend/steganography/payload.py
Other components
- User
Connections 26
- User → App routes: uses
frontend/src/App.jsx - App routes → Navigation: renders
frontend/src/App.jsx - App routes → Landing page: routes to
frontend/src/App.jsx - App routes → Encrypt page: routes to
frontend/src/App.jsx - App routes → Decrypt page: routes to
frontend/src/App.jsx - User → Encrypt page: selects inputs
frontend/src/pages/Encrypt.jsx - User → Decrypt page: supplies video/key
README.md - Encrypt page → Upload card: renders
frontend/src/pages/Encrypt.jsx - Encrypt page → Progress bar: renders
frontend/src/pages/Encrypt.jsx - Decrypt page → Upload card: renders
frontend/src/pages/Decrypt.jsx - Decrypt page → Progress bar: renders
frontend/src/pages/Decrypt.jsx - Encrypt page → API client: requests encryption
frontend/src/pages/Encrypt.jsx - Decrypt page → API client: requests recovery
frontend/src/pages/Decrypt.jsx - API client → Encrypt/decrypt routes: HTTP requests
frontend/src/services/api.js - FastAPI app → Encrypt/decrypt routes: registers routes
backend/app/main.py - FastAPI app → Upload/output config: reads output path
backend/app/main.py - Encrypt/decrypt routes → Upload/output config: reads limits and paths
backend/app/routes.py - Encrypt/decrypt routes → Temporary uploads: writes temporary files
backend/app/routes.py - Encrypt/decrypt routes → Generated files: writes results
backend/app/routes.py - FastAPI app → Generated files: serves downloads
backend/app/main.py - Encrypt/decrypt routes → AES encryption and keys: encrypts image
backend/app/routes.py - Encrypt/decrypt routes → LSB video embedding: embeds ciphertext
backend/app/routes.py - Encrypt/decrypt routes → LSB video extraction: extracts payload
backend/app/routes.py - Encrypt/decrypt routes → AES decryption and verification: decrypts image
backend/app/routes.py - LSB video embedding → Payload framing: builds framing
backend/steganography/embed.py - LSB video extraction → Payload framing: parses header
backend/steganography/extract.py