Encrypt the message ATTACK using the RSA cryptosystem with n = 43 · 59 and e = 13, translating each letter into integers and grouping together pairs of integers, as done in example 11 in the textbook and in the classnotes.
The Answer to the Question
is below this banner.
Here's the Solution to this Question
RSA uses a public key, found from the product of 2 large primes. In yhe given case it is they selected 43 and 59, so the public key is 43*59 = 2537. You were also given e = 13. The English alphabet contains 26 letters, and there is two ways to mark the letters: from 0 to 25 or from 1 to 26. Lets mark them from 1 to 26(A - 1, B - 2 etc). The logic of encrypt next: We transform each letter into the numeric form using alphabet above(A - 1, T - 20, C - 3, K - 16) and encrypt it using the next formula: , where m - encrypted letter, m - numerical form of the letter, e - public exponent, q - public key
In the given case:
So, the encrypted message is 114351435110871225