Let say we have the following information: $$ e = 3 $$ $C$ is the Cipher text and $M$ is the Plain text with $C=M^3\pmod N,$ and $N$ is a product of two primes.
and we have the size of the original message $M$ which is 342 bits. Also we have $N$ which is $1024$ bits. So the goal is the recover the original message $M$ based on the given information. I know that if $$M^e < N$$ then I can just apply $$ \sqrt[e]{C} $$ and I can get back the original message. In this case it will be $$ \sqrt[3]{C} $$ However, it is possible that $M^3$ is greater than $N$ in this case as $(2^{342})^3 = 2^{1026} > 2^{1024}$. So this method sometimes doesn't work when $M^3 > N$. Are there any way to brute force or compute the remaining so that I can still get the original message when $M^3 > N$ ? I feel like the size of $N$ and $M$ is quite important but I can't quite figure out the way to do this.