Question

Following are two problems using a rail fence cipher. Prove both of your answers by showing...

  1. Following are two problems using a rail fence cipher. Prove both of your answers by showing the steps involved in encryption/decryption. As [art of this problem you must also show the steps involved in reversing what you are being asked for. (20 points)

Using a rail fence cipher with a depth of 2 encrypt the following message:

The bird is a raven

[ your answer goes here ]

Reverse the steps to decrypt your answer and explain the steps.

[ your answer goes here ]

Using a rail fence cipher with zig zag pattern and a depth of 3 decrypt the following message:

      MAEKN   ETTHPRAOEM ETATP

          

[ your answer goes here ]

Reverse the steps to encrypt your answer and explain the steps.

[ your answer goes here ]

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1) Encrypting "THE BIRD IS A RAVEN":

Length of Plaintext = 15

Key = 2

At first, we use a grid of size 2x15. The plaintext is written diagonally in a zig-zag fashion.

T E I D S R V N
H B R I A A E

The individual rows are read one-by-one to get the ciphertext.

Ciphertext is "TEIDSRVNHBRIAAE"

Next -

Decrypting the ciphertext "TEIDSRVNHBRIAAE"

Length of Ciphertext = 15

Key = 2

We start by making a grid with as many rows as the key is, and as many columns as the length of the ciphertext ,i.e, a 2x15 grid. Next, we place "T" in the first square. We then dash the diagonal down spaces until we get back to the top row, and place the "E" here. We continue filling the first row. Finally, we get this -

T E I D S R V N
- - - - - - -

Continuing this for the next row, we get the following:

T E I D S R V N
H B R I A A E

Finally, we can read off diagonally in a zig-zag fashion to get back the plaintext.

Plaintext is "THEBIRDISARAVEN".

2) Decrypting "MAEKN   ETTHPRAOEM ETATP":

Length of Ciphertext = 20

Key = 3

We start by making a grid of size 3x20. Next, we place "M" in the first square. We then dash the diagonal down spaces until we get back to the top row, and place the "A" here. We continue filling the first row. Finally, we get this -

M A E K N
- - - - - - - - - -
- - - - -

Continuing this for the second row, we get the following:

M A E K N
E T T H P R A O E M
- - - - -

And for the third row,

M A E K N
E T T H P R A O E M
E T A T P

We can read off diagonally in a zig-zag fashion to get back the plaintext.

Plaintext is "MEETATTHEPARKATONEPM".

This can be deciphered as "MEET ME AT THE PARK AT ONE PM"

Decrypting the plaintext "MEETATTHEPARKATONEPM":

Length of Plaintext = 20

Key = 3

At first, we use a grid of size 3x20. The plaintext is written diagonally in a zig-zag fashion.

M A E K N
E T T H P R A O E M
E T A T P

The individual rows are read one-by-one to get the ciphertext.

Ciphertext is "MAEKNETTHPRAOEMETATP"

Add a comment
Know the answer?
Add Answer to:
Following are two problems using a rail fence cipher. Prove both of your answers by showing...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Using a ROT5 cipher encrypt the following plaintext. Prove your answer by showing the steps for...

    Using a ROT5 cipher encrypt the following plaintext. Prove your answer by showing the steps for both the encryption and decryption. (20 points) Meet at the baseball field at three oclock 2. Using a ROT3 cipher decrypt the following ciphertext.       WKHF RUYH WWHL VUHG

  • 5. Using the modified rail fence algorithm (matrix size 5 x 5), encrypt the following message....

    5. Using the modified rail fence algorithm (matrix size 5 x 5), encrypt the following message. Plaintext message: Defend the east and south wall Use the following key word to Also show your results after 1st and 2nd stage. What is the final encrypted message? encrypt: 31254

  • Write a javascript program which implements the following two classical cryptosystem which we covered in class:...

    Write a javascript program which implements the following two classical cryptosystem which we covered in class: Affine Cipher Vigenere Cipher Your program should consist of at least five functions: Two functions named encrypt, one for each of the two algorithms which accepts a lowercase alphabetical plaintext string and key as input and outputs a corresponding cipher text string. Two functions named decrypt, one for each of the two algorithms which accepts a lowercase alphabetical ciphertext string and a key as...

  • Decrypting the APCO cipher without the key. Decryption without the key is obviously a much more...

    Decrypting the APCO cipher without the key. Decryption without the key is obviously a much more difficult process. Indeed, the purpose of encryption is to make it as difficult as possible for anyone who does not know the key to read the plain text. We will be using an unsophisticated password cracking technique called a brute force attack. A brute force attack on the APCO cipher works by trying every possible four digit key (from 0000 to 9999) and keeping...

  • ****************************************************************************************************************8 I want it same as the output and with details please and comments "For two...

    ****************************************************************************************************************8 I want it same as the output and with details please and comments "For two thousand years, codemakers have fought to preserve secrets while codebreakers have tried their best to reveal them." - taken from Code Book, The Evolution of Secrecy from Mary, Queen of Scots to Quantum Cryptography by Simon Singh. The idea for this machine problem came from this book.You will encrypt and decrypt some messages using a simplified version of a code in the book. The...

  • 3) Out of the following, name which kind of attack you carried out in part 1...

    3) Out of the following, name which kind of attack you carried out in part 1 and part2: a. ciphertext only, b. known plaintext, c. chosen plaintext, d. chosen ciphertext. Explain your answer Problem 3 10 points] A 4-bit long message was encrypted using one-time pad to yield a cipher-text “1010” Assuming the message space consists of all 4-bit long messages, what is the probability that the corresponding plaintext was “1001”? Explain your answer. Problem 4 Assume we perform a...

  • This is my assignment prompt This is an example of the input and output This is...

    This is my assignment prompt This is an example of the input and output This is what I have so far What is the 3rd ToDo in the main.cpp for open the files and read the encrypted message? Does the rest of the code look accurate? Programming Assignment #6 Help Me Find The Secret Message Description: This assignment will require that you read in an encrypted message from a file, decode the message, and then output the message to a...

  • C++ Code

    "For two thousand years, codemakers have fought to preserve secrets while codebreakers have tried their best to reveal them." - taken from Code Book, The Evolution of Secrecy from Mary, Queen of Scots to Quantum Cryptography by Simon Singh.The idea for this machine problem came from this book.You will encrypt and decrypt some messages using a simplified version of a code in the book. The convention in cryptography is to write the plain text in lower case letters and the encrypted text in upper case...

  • You need not run Python programs on a computer in solving the following problems. Place your...

    You need not run Python programs on a computer in solving the following problems. Place your answers into separate "text" files using the names indicated on each problem. Please create your text files using the same text editor that you use for your .py files. Answer submitted in another file format such as .doc, .pages, .rtf, or.pdf will lose least one point per problem! [1] 3 points Use file math.txt What is the precise output from the following code? bar...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT