Mini RSA (70)

RSA with low exponent

Problem

What happens if you have a small exponent? There is a twist though, we padded the plaintext so that (M ** e) is just barely larger than N. Let's decrypt this: ciphertext

Solution

TL;DR: add integer multiples of NN to cc , until cc can be expressed as an e-the\text{-th}power.

Proof

c=me(modn)c=m^e \pmod n

Case 1: me<nm^e<n. Then

m=cem=\sqrt[e]{c}

Case 2: menm^e\ge n. Then

c=meknm=c+kne\begin{align} c &= m^e - kn \\ m &= \sqrt[e]{c+kn} \\ \end{align}

for some kZ+k \in \mathbb{Z^+} . This sort of attack works because in our case, ee is small.

The algorithm adds N to c until c becomes a valid cube. At this point, we are able to obtain the plaintext message, i.e. the cube root.

References

Last updated

Was this helpful?