CO3099/7099: Client Server Programming with RSA Encryption
VerifiedAdded on 2022/08/10
|9
|1136
|384
Project
AI Summary
This Java project focuses on building a secure client-server application utilizing the RSA algorithm for encryption and decryption. The system comprises four Java classes: `Server.java`, `Client.java`, `RSA.java`, and `Message.java`. `Server.java` establishes the server, enabling client connections via socket programming using a specified port. `Client.java` allows clients to connect to the server, providing a user ID and host information to establish a connection. `RSA.java` handles encryption and decryption of messages using the RSA algorithm, along with SHA-256 hashing of recipient user IDs for security. The `Message.java` class stores message details like encrypted messages, timestamps, and user IDs, employing getter and setter methods for data encapsulation. The program demonstrates the secure transmission of messages, where clients encrypt their messages before sending them to the server, which decrypts them for readability. The project includes socket programming for establishing the client and server communication.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
1 out of 9