Public-key encryption with RSA

RSA publishes $n = pq$ and $e$ and keeps $d$ with $ed \equiv 1 \pmod{(p-1)(q-1)}$, so anyone can compute $c = m^e \bmod n$ but only the key holder can undo it with $c^d \bmod n$, and its safety rests on factoring $n$ being hard.

From Computer Networks and Security.