[Solved] BBM465 Project 2-Cyrpt Messenger

$25

File Name: BBM465_Project_2-Cyrpt_Messenger.zip
File Size: 301.44 KB

SKU: [Solved] BBM465 Project 2-Cyrpt Messenger Category: Tag:
5/5 - (1 vote)

You are expected to develop a simple file client-server encryption/decryption messaging application.

The requirements are below:

  • The program must support three encryption modes (CBC, OFB) and two encryption algorithms (AES, DES).
  • Padding mode must always set to PKCS5 Padding The program must be executed as follows:

Server: The server applications should be started first and wait for incoming connections. All encrypted messages received by the server will be distributed to clients directly. Besides, when the server starts, it will produce a random key and random initialization vector (IV) and send these key and vector to all the clients. Finally, the server must write, produced random key, produced IV and the encrypted message sent to itself with information about user name who sent the message to its console and must create/update a log file (log.txt) whenever a message is sent to itself (All these informations must be in Base64 Encoded (except username, username will be displayed as normal text )

Client: Client application should have similar GUI showed in Figure-1. In the GUI There are three textboxes. First and the biggest textbox is for messages. Incoming messages will be displayed in this textbox. Second textbox titled text is for message writing. After typing a message user will press encrypt button to cipher the message. The encryption method and mode can be selected by using radio buttons top of the window. Then user should press send button to send encrypted message to server.

Figure-1 GUI of the application.

Software usage.

First Client application has to connect to server via TCP/IP sockets. Then users should enter his/her nickname that will be used in chatting. The dialog box opened after pressing connect is displayed in Figure-2. The encrypted texts and decrypted texts should be displayed in message area as shown in Figure-3

Figure-2 Username dialog box.

Figure-3 Sample messages

All messages should be send to all clients. Encrypted and decrypted messages should be displayed on message textbox (crypted message must be displayed with Base64 encoded version).

The same encryption algorithm and mode should be selected in all clients. Key and IV should be randomly generated by the server and distributed to all clients. All clients should use the same key and IV. You must use Java crypto API [1] for encryption functions.

1 Notes

  1. You can ask questions about the experiment via Piazza group (piazza.com/hacettepe.edu.tr/fall2020/bbm465).
  2. Late submission will not be accepted!
  3. You must compile your program on Java version of the dev machine.
  4. You are going to submit your experiment to online submission system:

http://submit.cs.hacettepe.edu.tr/

The submission format is given below:

<Group id>.zip [src]/

*.[java]

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] BBM465 Project 2-Cyrpt Messenger
$25