Question: In C language, must not use arrays. Encryption is the science of hiding information. Encryption allows Alice and Bob to communicate without their adversary Eve

In C language, must not use arrays.  In C language, must not use arrays. Encryption is the science

Encryption is the science of hiding information. Encryption allows Alice and Bob to communicate without their adversary Eve (the eavesdropper) reading and understanding the "secret message", For example, ROT13 will transform the secret message "helloworld" into "uryybybey". Although the message is secret, Eve is still able to ohserve that communication is taking place, and this information alone can be very valuable Stcganography, in contrast, is the science of preventing others from lcarning information by hiding that information in "plain sight. The secret message is not scrambled, or encrypted but rather it is mixed in with other non-socret information in such a way that, although it is casy to read, people are not even aware that the secret message is there. In this scenario, Eve does not even realize that communication is occurring between Alice and Bob. The input for your program will be a text file containing a large amount of English. Typically, an English sentence ends with a period (aka, dot). Many years ago, when people used mechanical typewriters, the proper form was to place one space betwecn words in a sentenoe, but two spaces after the peniod at the end of the senience. This rule is no longer taaght, since word proccssors automatically control spacing Your program must extract the "secret message" from the input file. Tbe message is hidden inside the file using the following scheme. The message is hidden in binary notation, as a sequence of 0's and I's. Each block of 8-bits is the ASCII encoding of a single character in the "secret message", Your program will scan the input, and for each period (aka, dot) encountered your program will count the number of spaces (ASCI1 0x20) that immediately follow the dot. If the namber of spaces is 0, then your program will ignore that dot completely. If the number of pacs is 1, then that corresponds to a single 0 bit of the secret message. If the number of spaces is 2, then that corresponds to a single I bit of the secret message. Finally, if the number of paces is 3 or more, then that indicates that there are no more characters in the secret message Your program must scan the input file, and output to stdout the plain text secret message. If your program successfully completes its task, then the program should returm an exit status of 0 to the operating system. If the number of bits in the message is not a multiple of 8 (8 bits for each ASCII character, then your program should return an exit status of 1 lfte input file does not containing the "message over" signal, i.e., a dot followed by 3 or more spaces, then your program should return an exit status of 2. Your program sou the "socret message" to stdout. This program is an example of "stream processing". You will read the input file, character by character, in a single pass. You must not use arrays of any kind, since there is no need to do so, and using arrays is simply inefficient (ie, overkill)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!