Encryption Algorithm

Question description

Write a code in Java to implement the Rail Fence Cipher encryption algorithm.

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.

What will be the decryption algorithm for a Rail-Fence cipher? Write down the pseudocode for the algorithm.

Using Java to implement the Rail Fence Cipher decryption algorithm.

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.

Do you need help with this assignment? Or a different one? We got you covered.

Quality Guaranteed

Any Deadline

No Plagiarism