Question: Stream Ciphers [ 2 marks ] Alice has designed a mobile app for one - on - one chat among her friends in the class.
Stream Ciphers marks
Alice has designed a mobile app for oneonone chat among her friends in the class.
However, the messages are transmitted over a channel that broadcasts to all devices
in the class. Since Alices friends like to gossip, it is important that only the intended
recipient is able to read the messages. Alice has devised the following method to deal
with the problem.
Each user is assigned a character long ID Each message is at most character
long. The structure of messages is provided below:
Structure of the message: character long sender namea character separator :
character long receiver namea character separator : characters for the
gossip
Example message: alicexoxxo:bobkoool: eve likes to snoop
Each message is XORed with a byte long shared key between Alice and Bob. The
output ciphertext is the same size as the message iebytes for the above message
from Alice to Bob The key is changed every day. The app is updated each month
over a secure communication channel not the broadcast medium mentioned above
and it receives the keys for the relevant pair of users ie Alice receives the shared key
between AliceBob and AliceEve
a Use openssl CLI to generate random bytes the key Please provide the
command that you used and the generated key in hexadecimal. mark
b Create a message with your name in gossip text from Alice to Bob eg for
the course instructor it will be: alicexoxox:bobkoool:hassan Provide the
ciphertext using the key constructed in a and the stream cipher construction
discussed above mark
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
