Let's say we have just RSA public and private exponents $e$ and $d$ but not the corresponding modulus $n$. Is there a method to find $\phi(n)$?
This is for a CTF challenge. I am not concerned about retrieving $n$ at this stage.
My guess would be to start from $d = e^{-1} \mod \phi(n)$, which leads to $1 = e \times d \mod \phi(n)$.
Hence, $\phi(n)$ could be equal to $e \times d - 1$, but that could also not be the case, if $e \times d - 1$ is composite.
So is there a way to find the correct value for $\phi(n)$?
Thank you for your help.