I'm trying to follow this proof about RSA
n is the product of two distinct primes. $ e * d$ mod $\phi(n)$ = 1 with $ e,d \in \Bbb{N}$
In the last line how does $(x^{ed} - x) $mod n $= 0$ simplify to $((x^e)^d) $mod $n = x$
I'm trying to follow this proof about RSA
n is the product of two distinct primes. $ e * d$ mod $\phi(n)$ = 1 with $ e,d \in \Bbb{N}$
In the last line how does $(x^{ed} - x) $mod n $= 0$ simplify to $((x^e)^d) $mod $n = x$
$$x^{ed}-x \equiv 0 \pmod n\\ x^{ed} \equiv x \pmod n\\ (x^e)^d \equiv x \pmod n$$ The second line adds $x$ to each side, the third is by a property of exponents.