We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Decryption

Decryption in RSA is almost unbelievably simple from a mathematics perspective but remains extremely secure.

The only known way to efficiently crack a secure RSA system is with a $5 wrench.

-- xkcd

Assignment

Complete the decrypt function.

func decrypt(c, d, n *big.Int) *big.Int

Use the big.Int.Exp function to raise the encrypted message (c) to the power of the private key (d) within (mod n).