Home
Writeups Misc About
Modulus Inutilis

Modulus Inutilis

A interesting challenge, we are given the modulus n, public exponent e and ciphertext ct.

From this, denote m as the plaintext, we need to solve the equation

mectmodN

The above equation is equivalent to:

mect=0modN

The idea that I had is to use Coppersmith attack for low-exponent 3, we can find the solution to the equation quickly.

A better solution is the astute observation that e = 3 is pretty small whereas n is big, so it is possible that pow(m,e) is inferior to n so c, which is pow(m,e,n) would probably simply be pow(m,e)=pow(m,3). Hence, the solution is simply:

Note that you have to append the values of n, e, ct given for the script.