A tiny numerical example shows all the steps of RSA with computations you can do by hand.
Example — Toy RSA ,
, . We choose (coprime with ). The inverse of modulo is found with the extended Euclidean algorithm: , hence .
Encoding the message : . Computation: , , hence One finds .
Decoding: . One verifies numerically (fast exponentiation) that it returns . ✓
The message is encrypted into with the public key and recovered with the private key : it is the whole mechanism of RSA on a toy scale.
Links
Topics: Distribuzioni probabilita
Concepts: Aritmetica modulare · Crittografia rsa
Methods: Rsa cifratura
Skills: Calcolare · Usare formule