Reverse Cipher
Reverse Cipher is a simple cipher that reverses the order of the characters in the message. It is a weak cipher because it is very easy to crack. It is also known as the reverse cipher.
Last updated
Reverse Cipher is a simple cipher that reverses the order of the characters in the message. It is a weak cipher because it is very easy to crack. It is also known as the reverse cipher.
Last updated
The algorithm of reverse cipher holds the following features −
Consider an example where the statement This is program to explain reverse cipher is to be implemented with reverse cipher algorithm. The following python code uses the algorithm to obtain the output.
When the above code is executed, it produces the following result −
The above code uses the reverse function to reverse the string of plain text. The reverse function takes the string as an argument and returns the reversed string. The reversed string is stored in the variable s. The variable s is printed as the cipher text.
Write a python program to implement reverse cipher algorithm using a while loop.
Using lambda function, write a python program to implement reverse cipher algorithm.