Now I have a thorough understanding of the existing codebase. I'll do a complete redesign with:
- Stunning dark-mode-first design with light mode toggle, animated mesh backgrounds, glassmorphism
- Multi-file architecture — engine logic separated from UI
- Massively expanded educational section with interactive diagrams, step-by-step math explanations
- Polished workbench with better UX, progress states, visual comparisons
- Beautiful typography, animations, and color system
Let me start building:
Now I'll create the steganography engine as a separate module:
Now, the comprehensive educational section:
Now the complete main App with dark mode, beautiful design, and animated backgrounds:
Now update the CSS with dark mode support, animations, and beautiful styling:
Build succeeded. Let me verify the files look correct and make a few refinements:
Let me check the education section renders properly and look for any issues:
I notice the Education light-mode border class light-border is a custom class that doesn't exist. Let me fix the border styling in the Section component:
Now let me also add some padding/spacing adjustments to the Education container for light mode readability:
The build succeeds. Let me verify the overall structure once more to make sure everything is clean:
Let me also verify the final index.html title:
Everything looks great. Let me do a final verification of the complete build:
The application builds successfully. Here's a summary of everything I built:
VEIL — Image Steganography Studio
Architecture (4 files)
| File | Purpose |
|---|
src/lib/engine.ts | Complete steganography engine — all crypto, LSB, Hamming, CRC, image processing |
src/components/Education.tsx | 15-chapter interactive educational guide with math, diagrams, tables |
src/App.tsx | Main UI — dark/light mode, workbench, hero, pipeline overview |
src/index.css | Theme system, animations, scrollbar styling, accessibility |
Design Features
- Dark mode by default with light mode toggle, persisted to localStorage, respects system preference
- Animated mesh gradient background — three large gradient orbs with smooth drifting animation, subtle grid pattern overlay, and noise texture
- Glassmorphism panels — backdrop-blur, translucent borders, layered depth
- Smooth animations — entry animations, expand/collapse, spin states for processing
- Fully responsive — mobile hamburger menu, stacked layouts on small screens
- Accessible — focus-visible rings, aria attributes, reduced-motion support, semantic HTML
Steganography Engine
- LSB Substitution:
y = (x & 0xFE) | b — max ±1 perturbation per channel
- AES-256-GCM encryption via Web Crypto API (hardware-accelerated, NIST SP 800-38D)
- PBKDF2-SHA-256 key derivation with 210,000 iterations (OWASP 2023 recommendation)
- Hamming(7,4) error correction — single-bit error repair per codeword
- Keyed coprime scatter — password-derived permutation visits every bit position exactly once
- CRC-32 checksum — defense-in-depth integrity verification
- Automatic JPEG packing — secret image is progressively scaled and quality-reduced to fit capacity
- Live metrics — MSE, PSNR (dB), SSIM computed after embedding
Educational Guide (15 Chapters)
- What Is Steganography — history, concepts, the impossible triangle
- How Digital Images Store Color — RGB, pixel layout, memory format
- LSB Substitution — the core embedding equation, capacity formula
- LSB vs DCT vs DWT vs Deep Learning — comparison table with equations for each
- Keyed Bit Scattering — coprime permutation math, complete residue system
- AES-256-GCM — SubBytes/ShiftRows/MixColumns, CTR+GHASH, auth tags
- PBKDF2 Key Derivation — iteration cost analysis, salt purpose
- Hamming(7,4) — generator matrix, syndrome decoding, worked examples
- CRC-32 Integrity — polynomial, collision probability
- Quality Metrics — MSE, PSNR, SSIM with full formulas and stabilization constants
- Information Theory & Entropy — Shannon entropy, embedding rate, distortion models
- Complete Pipeline — full ASCII flow diagrams for sealing and recovery
- 64-Byte Header Format — byte-level field specification table
- Limitations & Threat Model — honest assessment of what Veil does/doesn't protect
- Research References — 8 cited sources including PLOS ONE survey, NIST, MDN, Fridrich
Files built: index.html, src/lib/engine.ts, src/components/Education.tsx, src/App.tsx, src/index.css