Example7.5
Before exploring the theory behind the RSA cryptosystem or attempting to use large integers, we will use some small integers just to see that the system does indeed work. Suppose that we wish to send some message, which when digitized is 25. Let $p = 23$ and $q = 29\text{.}$ Then
and
We can let $E = 487\text{,}$ since $\gcd(616, 487) = 1\text{.}$ The encoded message is computed to be
This computation can be reasonably done by using the method of repeated squares as described in ChapterĀ 4. Using the Euclidean algorithm, we determine that $191 E = 1 + 151 m\text{;}$ therefore, the decrypting key is $(n, D) = ( 667, 191)\text{.}$ We can recover the original message by calculating