I want to know if there is a easy way to calculate $r$ from $c=r^t\mod{n}$ where $(c,t,n)$ is known and $t=pq$ is an RSA?
If $n=t^2$, is it more easier?
I want to know if there is a easy way to calculate $r$ from $c=r^t\mod{n}$ where $(c,t,n)$ is known and $t=pq$ is an RSA?
If $n=t^2$, is it more easier?
If $n$ is prime, then it is easy; we have
$$r = c^{t^{-1} \bmod n-1} \bmod n$$
If $n$ is a composite of known factorization, then it is still easy; one approach would be to have:
$$r = c^{t^{-1} \bmod \phi(n)} \bmod n$$
where $\phi(n)$ is the totient function. An equivalent approach would be to solve it for all the prime power factors of $n$, and then use the Chinese Remainder Theorem to reconstruct $r$
If $n$ is a composite of unknown factorization, well, it's believed to be hard. This is actually the RSA problem