Question: Please help me to do this project with using python. Assignment Overview In this assignment, we are going to implement a simple encoding and decoding
Please help me to do this project with using python.




Assignment Overview In this assignment, we are going to implement a simple encoding and decoding of text. As a result of working on this project, you will gain more experience with the use of 1. string 2. if statement 3. for loop and while loop Background The substitution cipher is a cipher that has been in use for many hundreds of years. It basically consists of substituting every plaintext character for a different ciphertext character. The cipher alphabet may be shifted or reversed or scrambled. In this project, we will combine two types of substitution cyphers: a simple substitution cipher followed by an affine cipher Simple substitution cipher: the cipher alphabet is created by first writing out a keyword, removing repeated letters in it, then writing all the remaining letters in the alphabet in the usual order. Consider the following example. Consider the alphabet being a single string consisting of the lower-case English letters as below (shown with each letter's associated index, e.g. m's index is 12) 0 1 2 3 4 5 678 9 2 2 2 2 2| 2 2 345 6 789 01 2 3 4 5 0 Then, using this system, the ke "michigan" gives us the following alphabet mappin 0 1 2 3 4 5 678 9 2 2 2 2 2| 2 2 345 6 789 01 2 3 4 5 0 Note how "michigan" starts the mapping, how the second "i" is skipped, and how the remaining letters continue in alphabetical order without the characters of "michigan". Using the example above, the word "green" is translated as follows . . . . * the 'g' is found at index 6 in the alphabet. The letter in the rotated alphabet is 'n' the 'r' is found at index 17, the rotated letter is the 'e' is found at index 4, the rotated letter is 'g' the 'e' is found at index 4, the rotated letter is 'g' the 'n, is found at index 13, the rotated letter is 'I, Thus, the string 'green' becomes the string 'nrggl'. You will use that cyphertext 'nrggl' as the starting point ("plaintext") for the next stage, the affine cipher Assignment Overview In this assignment, we are going to implement a simple encoding and decoding of text. As a result of working on this project, you will gain more experience with the use of 1. string 2. if statement 3. for loop and while loop Background The substitution cipher is a cipher that has been in use for many hundreds of years. It basically consists of substituting every plaintext character for a different ciphertext character. The cipher alphabet may be shifted or reversed or scrambled. In this project, we will combine two types of substitution cyphers: a simple substitution cipher followed by an affine cipher Simple substitution cipher: the cipher alphabet is created by first writing out a keyword, removing repeated letters in it, then writing all the remaining letters in the alphabet in the usual order. Consider the following example. Consider the alphabet being a single string consisting of the lower-case English letters as below (shown with each letter's associated index, e.g. m's index is 12) 0 1 2 3 4 5 678 9 2 2 2 2 2| 2 2 345 6 789 01 2 3 4 5 0 Then, using this system, the ke "michigan" gives us the following alphabet mappin 0 1 2 3 4 5 678 9 2 2 2 2 2| 2 2 345 6 789 01 2 3 4 5 0 Note how "michigan" starts the mapping, how the second "i" is skipped, and how the remaining letters continue in alphabetical order without the characters of "michigan". Using the example above, the word "green" is translated as follows . . . . * the 'g' is found at index 6 in the alphabet. The letter in the rotated alphabet is 'n' the 'r' is found at index 17, the rotated letter is the 'e' is found at index 4, the rotated letter is 'g' the 'e' is found at index 4, the rotated letter is 'g' the 'n, is found at index 13, the rotated letter is 'I, Thus, the string 'green' becomes the string 'nrggl'. You will use that cyphertext 'nrggl' as the starting point ("plaintext") for the next stage, the affine cipher
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
