Question: Create a computer program using any language of your choice to perform the following actions: 1. Generator a modulo 26 random number. a. Implement the
Create a computer program using any language of your choice to perform the following actions: 1. Generator a modulo 26 random number. a. Implement the algorithm using the formula (do not use any library functions for random numbers): Si = seed Si+1 = (A.Si + B) mod m b. You may select any positive integer as seed value. c. A and B are positive integers. d. m = 26
2. Use the random number generated in step 1 to encrypt any English letter. a. Your code should be checking for only alphabetical input. (unless you decide to upgrade your code to handle entire set of ASCII characters) b. Rotate the user provided alphabets (or plain text) by the number of positions generated by the random number to produce the encrypted text.
3. Provide an implementation to retrieve the plain text back. (i.e a decryption algorithm to rotate the alphabets back to their original place
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
