Home
Writeups Misc About
Infinite Descent

Infinite Descent

From the code, we can observe that the way that the primes are generated is a bit weird - the primes are very close to each other. This is a very classic problem which happens in real life - some RSA modulus is cracked because of the distance of the primes being too small. The code opens up a vector for an attack - the Fermat's factorization method when the prime difference is small. This post from the Crypto StackExchange sums up everything there is for this challenge.

Sage Implementation: