Cryptography & Security
Advanced

RSA Decryption

Recovers the message using the private exponent d.

Formula

m=cdmodnm = c^d \bmod n

Variables

mMessage
cCiphertext
dPrivate exponent
nModulus

Example

c=31, d=7, n=33: m = 31^7 mod 33 = 4

Did You Know?

RSA's security rests on the fact that factoring a 2048-bit modulus would take longer than the age of the universe.

Share this formula