plz reply on wafic.chaib@hotmail.com, C/C++ Programming

You are to implement a code cracking system. The system will deploy four processes (p1,p2,p3 & p4) to try to guess the password of an encrypted code.
For encryption, we consider that the formula is: C = P XOR K, where
• C = encrypted code
• P = plain text
• K = key
For decryption the formula is: P = C XOR K. So, your program will try to find K using this formula. The XOR operator is ^.
Given an encrypted code C and plain code P your program should deploy three processes to try and find the key used to encrypt the plain code. These three processes will be under the control of process P1.
All processes will send their results to process P1 and process P1 will terminate the three processes and display the encryption key and decrypted text once any of the three processes finds the key.
For simplicity we will consider that we have the original number P stored in a file called plain.txt and the encrypted code is stored in a file called cipher.txt. Consider that only numbers are stored in these files and they have a range between 0 and 100000000.
So we have P and C your program should find the key K. Consider that K is a positive number between 0 and 1000000.
Posted Date: 12/23/2012 8:28:36 AM | Location : Lebanon







Related Discussions:- plz reply on wafic.chaib@hotmail.com, Assignment Help, Ask Question on plz reply on wafic.chaib@hotmail.com, Get Answer, Expert's Help, plz reply on wafic.chaib@hotmail.com Discussions

Write discussion on plz reply on wafic.chaib@hotmail.com
Your posts are moderated
Related Questions
Aim: To implement a program to create, update & display account & admin record of person using display account & admin records of person using virtual base class.. Code:

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Objectives: The objective of this assignment is to use C++ to queue students into an array-based queue for BCS registration. Students have the option of taking five different cours

Function fact explain how the process of recursion works in C++.In your answer assume that the function is called to calculate the factorial of 6?

decodes the sending smuggler string from the number format into plain text


Identify 2 to 3 existing algorithms commonly used for object tracking. Algorithms should be in C or written in MATLAB language. Document these algorithms in flowcharts and run thes

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Default Value Functions,  When declaring a function we can specify a default value for each parameter. This value will be used if that parameter is left blank when calling to the f

flowcharting of 3 quizes display the average