1). Using Java language 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 Java language 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