Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

The Reverse Cypher


The reverse cipher encrypts a message by printing it in reverse order. So "How are you" will be "uoy era woh".But its is a very weak cypher. Just by lookink at the text, you can figure out that the letters are just reverse. But to begin with Cryptography, it is the best one to start with as it is easy and develops some concept of cryptography for newbies.

To decrypt, you simply reverse the reversed message to get the original

message. The encryption and decryption steps are the same


Source code:-

 message = input("enter your message" " ")
translated = ''
i = len(message) - 1while i >= 0:
translated = translated + message[i]
i = i - 1

Result :-

For any queries please feel free to comment below .

This post first appeared on CODE IT TO RULE IT, please read the originial post: here

Share the post

The Reverse Cypher


Subscribe to Code It To Rule It

Get updates delivered right to your inbox!

Thank you for your subscription