Write a program to encrypt/decrypt text that consists exclusively of alphabetic characters. Characters are encrypted using a random number generator with a specific seed value obtained from an encryption key provided by the encryptor. Using a specific seed allows for the random sequence to be regenerated by the decryptor, thus allowing for deciphering encrypted text. A random integer value modulo 26 is used to map an alphabetic character to another in the alphabet. This allows for the same alphabetic character to be mapped differently at different occurrences within the text to be encrypted. This method will alter the natural frequency in which letters occur in the alphabet making a brute-force deciphering method difficult.
Coding Language: Python
modulo 26 is used to map an alphabetic character to another in the alphabet.
Write a program to encrypt/decrypt text that consists exclusively of alphabetic characters. Characters are encrypted using...