I already broke the RSA system and now have the following parameters:
$m = 536813567 = 8191 \cdot 65537,$
$e = 3602561, $
$\phi(m) = 8190 \cdot 65536$
$d = 201934721$
I now want to decipher
$$\text{ARHILFKAODSTOSBSTWFQL}$$
Hint: The cypher text is given in blocks of length $7$, and every block represents a number in the "$26$-system" with $\text{A}$ representing $0$, $B$ representing $1$ and so on. The clear message does have blocks of length $6$ then.
In class, we started out with
$$c_1 = 0 \cdot 26^6 + 17 \cdot 26^5 + 7 \cdot 26^4 + 8 \cdot 26^3 + 11 \cdot 26^2 + 5 \cdot 26 + 10.$$
Then, we tried to determine
$$c_1^d \equiv 20002966 \mod m,$$
but I don't know why and how it happened.
The clear message is supposed to be "BRUCEWAYNEISBATMAN".
You should break it up in blocks of $7$, only you should check that the result of decoding the string to a number is $<m$.
In this case it does hold, decoding
ARHILFKgives $c_1=205330408$,AODSTOSgives $c_2 = 168039786$ and finallyBSTWFQLdecodes as $c_3 = 531853567$ all of which are $<m$ indeed. (decoding done in Python, not very hard).Now raising these to power $d$ modulo $m$ gives $p_1 = 20002966$, $p_2 = 11198842$ and $p_3 = 12223445$. Now encode these numbers as strings again: for $p_1$ we find the largest multiple (by a number $\le 25$) power of $26$ that is smaller or equal than $p_1$ and this is $1\cdot 26^5$, so the leftmost letter becomes $B$ (which corresponds to $1$). Substract that from $p_1$ and we are left with $8121590$. We can divide thus by $26^4$ $17$ times, with remainder $352998$. So the next letter is
R(from $17$) and we go to $26^3$: $352998 =20\cdot 26^3 + 1478$ so we write downU(for $20$) and then $1478 = 2\cdot 26^2 + 126$ so we getCand finally $126 = 4 \cdot 26^1 + 22$ so the last two letters areEandW. So indeedBRUCEWis the plaintext. Note that this is 6 letters, instead of 7, but we could have usedBRUCEWAwhich becomes the number $520077116 < m$, it's just on the limit. Stricly speaking we would have to decode asABRUCEWand $p_2$ becomesAAYNEISand $p_3$ becomesABATMAN.The initial
Amust then be discarded, seemingly. So maybe the plaintext should be divided up into groups of $6$ and for the output we need $6$ or $7$.