How kishan-rao/cryptolab works
This is an educational cryptography visualizer: users choose Vigenère, AES-128, or RSA, submit encryption/decryption inputs (and RSA key-generation parameters), then inspect returned results and step traces. The React pages call a FastAPI API; service classes adapt requests to from-scratch cipher implementations and build typed responses. The graph retains the documented cipher families, AES round/key-schedule inspection, RSA derivation and block traces, and Vigenère steps. Source excerpts support the backend calls; some frontend-to-API and UI-component relationships are only partially shown, so those links are marked unverified.
Main entry points: AES.jsx AES Page · App.jsx Page Router · Vigenere.jsx Vigenère Page · RSA.jsx RSA Page
Components 27
Visualizer UI
- Page Router
frontend/src/App.jsx - Algorithm Home
frontend/src/pages/Home.jsx - Vigenère Page
frontend/src/pages/Vigenere.jsx - AES Page
frontend/src/pages/AES.jsx - RSA Page
frontend/src/pages/RSA.jsx - Input Panel
frontend/src/components/InputPanel.jsx - Output Panel
frontend/src/components/OutputPanel.jsx - Step Viewer
frontend/src/components/StepViewer.jsx - State Matrix
frontend/src/components/StateMatrix.jsx - Display Formatters
frontend/src/utils/formatters.js - HTTP Client
frontend/src/services/api.js
API Layer
- FastAPI App
backend/app/main.py - Vigenère Routes
backend/app/api/routes/vigenere.py - AES Routes
backend/app/api/routes/aes.py - RSA Routes
backend/app/api/routes/rsa.py
Domain Services
- Vigenère Service
backend/app/services/vigenere_service.py - AES Service
backend/app/services/aes_service.py - RSA Service
backend/app/services/rsa_service.py
Cipher Algorithms
- Vigenère Cipher
backend/app/algorithms/classical/vigenere.py - AES-128
backend/app/algorithms/symmetric/aes.py - RSA
backend/app/algorithms/asymmetric/rsa.py
Schemas and Utilities
- Vigenère Schemas
backend/app/schemas/vigenere.py - AES Schemas
backend/app/schemas/aes.py - RSA Schemas
backend/app/schemas/rsa.py - Encoding Helpers
backend/app/utils/encoding.py - Math Helpers
backend/app/utils/math_utils.py
Other components
- Learner
Connections 38
- Learner → Page Router: opens
frontend/src/App.jsx - Page Router → Algorithm Home: routes to
frontend/src/App.jsx - Page Router → Vigenère Page: routes to
frontend/src/App.jsx - Page Router → AES Page: routes to
frontend/src/App.jsx - Page Router → RSA Page: routes to
frontend/src/App.jsx - Vigenère Page → HTTP Client: calls
frontend/src/pages/Vigenere.jsx - AES Page → HTTP Client: calls
frontend/src/pages/AES.jsx - RSA Page → HTTP Client: calls
frontend/src/pages/RSA.jsx - Vigenère Page → Input Panel: uses
frontend/src/pages/Vigenere.jsx - Vigenère Page → Output Panel: uses
frontend/src/pages/Vigenere.jsx - Vigenère Page → Step Viewer: uses
frontend/src/pages/Vigenere.jsx - AES Page → Input Panel: uses
frontend/src/pages/AES.jsx - AES Page → Output Panel: uses
frontend/src/pages/AES.jsx - AES Page → State Matrix: uses
frontend/src/pages/AES.jsx - AES Page → Display Formatters: uses
frontend/src/pages/AES.jsx - RSA Page → Input Panel: uses
frontend/src/pages/RSA.jsx - RSA Page → Output Panel: uses
frontend/src/pages/RSA.jsx - Output Panel → Display Formatters: formats with
frontend/src/components/OutputPanel.jsx - HTTP Client → FastAPI App: HTTP requests
- FastAPI App → Vigenère Routes: registers
backend/app/main.py - FastAPI App → AES Routes: registers
backend/app/main.py - FastAPI App → RSA Routes: registers
backend/app/main.py - Vigenère Routes → Vigenère Service: dispatches
backend/app/api/routes/vigenere.py - AES Routes → AES Service: dispatches
backend/app/api/routes/aes.py - RSA Routes → RSA Service: dispatches
backend/app/api/routes/rsa.py - Vigenère Routes → Vigenère Schemas: validates with
backend/app/api/routes/vigenere.py - AES Routes → AES Schemas: validates with
backend/app/api/routes/aes.py - RSA Routes → RSA Schemas: validates with
backend/app/api/routes/rsa.py - Vigenère Service → Vigenère Cipher: invokes
backend/app/services/vigenere_service.py - AES Service → AES-128: invokes
backend/app/services/aes_service.py - RSA Service → RSA: invokes
backend/app/services/rsa_service.py - Vigenère Service → Vigenère Schemas: builds responses
backend/app/services/vigenere_service.py - AES Service → AES Schemas: builds responses
backend/app/services/aes_service.py - RSA Service → RSA Schemas: builds responses
backend/app/services/rsa_service.py - AES Service → Encoding Helpers: converts hex
backend/app/services/aes_service.py - AES-128 → Encoding Helpers: converts state
backend/app/algorithms/symmetric/aes.py - AES Schemas → Encoding Helpers: normalizes hex
backend/app/schemas/aes.py - RSA → Math Helpers: uses math helpers
backend/app/algorithms/asymmetric/rsa.py