Home » 2: Sending Secret Messages (30 points) The first “computers” were human beings with the …

2: Sending Secret Messages (30 points) The first “computers” were human beings with the …

Question 2: Sending Secret Messages (30 points) The first “computers” were human beings with the job of encrypting (scrambling messages to hide their contents) and decrypting (reversing the process to read the message) One of the simplest encryptions is called “Codebook”, and it simply means replacing the letters of the alphabet using a pattern that’s written down in a codebook. The Q2 folder contains a sample codebook.txt file, shown here GHEI $ cat Q2/codebook.txt cijklmpqrstxyzabnodefuvwgh CDEMNOPQRSTGHUVXYZAIJKLWBF It has one line for the pattern of small letters and a second for the pattern of capitals. Each line is 26 characters long and indicates a re-mapping of each input letter based on it’s position in the standard alphabet. Ex1: An “a” in the input is the first letter in the alphabet, so encrypting replaces it by the first letter in the first line of the codebook.txt file, which is “c”. While decrypting, “c” goes back to “a”, Ex2: An “H” in the input is the 8th letter in the alphabet, so encrypting replaces it by the 8th letter in the second line of the codebook.txt file, which is “Q”. While decrypting, “Q” goes back to “H”. You must write two BASH programs: a. q2 encrypt.bash: Reads the codebook file provided as its first argument, reads the original message file provided as the second argument and prints the encrypted message on standard output b. q2 decrypt.bash: Reads the codebook provided as the first argument, applies the decryption on the encrypted file provided as the second argument and prints the recovered original message on standard output. Sample Program Output: $ bash q2_encrypt.bash Q2/codebook.txt Q2/test_input1.txt Q2/test_input1_encrypted.txt $ cat Q2/test_input1_encrypted.txt Q1xxa vaoxk. $ bash q2_decrypt.bash Q2/codebook.txt Q2/test input1encrypted.txt Hello world. $ bash q2_decrypt.bash Q2/codebook.txt Q2/secret_message.txt

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more