Once d and n are calculated, as shown in
the previous panel, and e is chosen, p and
q themselves are not used, and all trace of their
values should be removed to prevent unintended revelation.
Encryption and decryption are performed as follows. In
the equations below, M is a number less than n (an entire
message may need to be broken into multiple such M's, each
one encrypted as a block). Cipher text is denoted as C, as
usual:
C = M^e mod n
M = C^d mod n
The public key in this system consists of n and
e. We will call this key [e, n]. You can reveal these values to
the whole world. The private key consists of d.
Keep this value to yourself, or else anyone will be able
to decrypt the private messages sent to you.