Authors: Prem Raj, Ranjan Kumar, Akash Yadav, Devraj, Utkarsh Sonkar
Abstract: Traditional chat platforms consistently fail to protect user privacy. Networks routinely expose unencrypted messages to packet interception and unauthorized data theft. So, we need a better approach to digital communication. This research presents a secure client-server chat application built on TCP/IP socket programming. The system architecture utilizes Python to establish persistent Secure WebSocket (WSS) connections. We integrated an API Gateway to handle request routing alongside a MySQL database for persistent storage. Plus, the backend relies on Redis Pub/Sub for real-time channel broadcasting and Apache Kafka to manage asynchronous message queuing. For data protection, the application implements AES End-to-End Encryption and JSON Web Token (JWT) authentication. This ensures malicious actors cannot read intercepted payloads. To evaluate the architecture, we tested the system using a Kaggle dataset comprising real-time socket messaging logs. The empirical results indicate highly favorable operational efficiency.
International Journal of Science, Engineering and Technology