Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using any programming language of your choice implement the Rail Fence Cipher encryption algorithm 2) Specifications: The program should take two inputs 1) Message n

Using any programming language of your choice implement the Rail Fence Cipher encryption algorithm 2) Specifications: The program should take two inputs 1) Message n 2) The key k, which is a tuple (d,r), where d is the depth of the cipher and r is the number of times the algorithm should repeat itself. The program should produce as output the encrypted message as text 3) What will be the decryption algorithm for a Rail-Fence cipher? Write down the pseudocode for the algorithm. 4) Using any programming language of your choice implement the Rail Fence Cipher decryption algorithm 5) Specifications: The program should take two inputs 1) Encrypted Message n 2) The key k, which is a tuple (d,r), where d is the depth of the cipher and r is the number of times the algorithm should repeat itself. The program should produce as output the decrypted message as text Test 1 (Encryption) 1) Using a key of (4,5) use your code to encrypt the following text: "CRYPTOLOGY IS THE PRACTICE AND STUDY OF TECHNIQUES FOR SECURE COMMUNICATION IN THE PRESENCE OF THIRD PARTIES CALLED ADVERSARIES." 2) Do not ignore spaces Test 2 (Decryption) 1) Using a key of (3,3) use your code to decrypt the following text: "TAOTINEN KAT I ODIOAEI OHHLSCTE TTETOEL BI IHI GAO EPSEA TO SS EEK ELRCPTSIY EANRPHMCYEK E CREAAIEJURTE IEASHI MA DRN RH AUWTA RF EFTFHENTPSF Q TAILB E TTECAPMSIYIY SRPURNTBL YCL OANAO E TVREAOSHOTTNULSRHK 2) Do not ignore spaces

Can I get the code in C or C ++

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

More Books

Students also viewed these Databases questions

Question

What are the three primary CBIS functions that must be separated?

Answered: 1 week ago

Question

Define marketing concepts.

Answered: 1 week ago

Question

1 what does yellow colour on the map represent?

Answered: 1 week ago