Text Encryption
Encryption plays an important role in protecting messages that are transmitted across the network. There are many symmetric and asymmetric encryption techniques that can be used in order to encrypt text messages. Some of these techniques are Caesar, Rows-Columns Transposition, Rail- fence, and Playfair cipher encryption as well as advance encryption algorithms.
In this project, you are required to write a code that is capable of encrypting any given text (or text file) into a cipher text using any two different methods. You should prompt the user to choose the method that they would like to encrypt their text from a given list.
Challenge: develop your code to decrypt the cipher text that is encrypted above
Example:
Assume the textTO SERVE AND TO PROTECTis required to be encrypted using Row-Column with the passwordALERT
Then the text message in Rows-Columns Transposition will become:
TVTTSAPCOEOEENRTRDOX.The same text message in Rail-fence with depth of 4 would be:TRNPEOVDRCSETOTEAOTX. The text when using Playfair would be:AUQRAYRLKGAUSLUALDEZ.
please write comments in each line for explaining the code
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here