Write some Software

This project was successfully completed by sherbin83 for $25 USD in 7 days.

Get free quotes for a project like this
Employer working
Completed by:
Project Budget
$10 - $30 USD
Completed In
7 days
Total Bids
Project Description

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
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

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online