Write four programs (in any language that supports fork and pipe, e.g., C and Python).
$10-30 USD
Pagado a la entrega
Write four programs (in any language that supports fork and pipe, e.g., C and Python).
Each program creates two children processes: The first is “Alice” and the 2nd is “Bob”
Alice and Bob communicate using the following IPC methods:
shared memory
sockets
pipe
shared file
Alice and Bob uses Diffie-Hellman to establish a shared secret to be used for encrypting their communication.
For the purpose of this assignment, assume:
p = 103
g = 101
SA and SB are random numbers between 1 and 100.
For example:
% Qsocket
Qsocket: Using sockets for IPC
Diffie-Hellman Parameters p=103 and g=101
Parent: pid=64588
Alice: pid=64589, my Parent pid=64588
Bob: pid=64590, my Parent pid=64588
Alice Random Secret: 18
Alice Public T: 9
Bob Random Secret: 98
Bob Public T: 58
Bob: Connected to Alice
Alice: Accepted connection from Bob
Bob send to Alice its Public T: 58
Alice send to Bob its Public T: 9
<< Alice Got Bob Public T: 58
Alice-to-Bob Shared Secret: << (93) >>
>> Bob Got Alice Public T: 9
Bob-to-Alice Shared Secret: << (93) >>
Parent: Alice Exited
Parent: Bob Exited
Nº del proyecto: #5456046
Sobre el proyecto
Adjudicado a:
Hi,I have a lot of c++ programming experience.I figure that I can do this by using IPC method of windows API or MFC function. I am very sure I can complete very [login to view URL] most 2days.I am a master student of university, Más