SANDESH
"SANDESH: Defeating the 'Harvest Now, Decrypt Late
Created on 17th March 2026
•
SANDESH
"SANDESH: Defeating the 'Harvest Now, Decrypt Late
The problem SANDESH solves
"SANDESH solves the 'Harvest Now, Decrypt Later' vulnerability. Current messaging apps secure data with mathematical algorithms that quantum computers will soon break. We eliminate this expiration date by securing data with the absolute laws of physics, making silent interception impossible."
Challenges we ran into
Challenges I Ran Into & How I Overcame Them
- Stateless UI Disconnecting WebSockets: Streamlit's constant UI rerenders kept breaking the real-time chat connection.
Fix: I engineered a state-persistence mechanism using st.session_state to cache WebSocket objects and chat history in RAM, ensuring an uninterrupted full-duplex tunnel.
- WSS Handshake Failures via Proxy (502 Error): Tunneling the local WebSocket server globally via Ngrok caused 502 Bad Gateway errors because the proxy's security warning screen intercepted the handshake.
Fix: I bypassed this by injecting custom HTTP headers (ngrok-skip-browser-warning: true) directly into the network requests.
- Database Bloat from Cryptographic Camouflage: Pushing heavily padded packets (used to defeat traffic analysis) directly to MongoDB caused severe storage bloat.
Fix: I built an application-level filter that securely receives the padded data over the network but strips the dummy noise in-memory before writing to the database, optimizing cloud storage.
- Routing Crashes from Complex Keys: Passing cryptographic keys with special characters through WebSocket URLs crashed the FastAPI router.
Fix: I implemented strict URL encoding (urllib.parse.quote) on the client and decoding on the backend to sanitize inputs and prevent injection vulnerabilities
- Using free pinggy server and ngork requires intilization in every 60 mins
Fix:we have to use a paid server for constant connectivity