Math 3310 Discrete Mathematics

RSA Encryption

o    Make a class of type RSA

o    Generate the key files by calling GenerateKeys with two very long strings of lowercase letters that only you would remember.

o    Make a plain text file consisting of only letters in the alphabet. It should be long enough to require multiple encoding blocks.

o    Call your Encrypt method.

o    Call your Decrypt method.

o    Verify that the decoded output file exactly matches the original plain text file.

All code should be of your own creation, except the Inverse Euclidean Algorithm, which you may get whatever help you can from the internet.