Interactive 2D laboratory · Mathematics

RSA Cryptography: Public-Key Encryption Playground

Choose two small primes and a message to see modular arithmetic, public-key encryption and decryption step by step.

Live mathematical model
SIMULATION VIEWPORTRUNNING

Experiment controls

What you are exploring

RSA uses a public modulus n = p × q and an exponent e to encrypt a message as c = mᵉ mod n. A private exponent d reverses the operation because e × d is congruent to 1 modulo φ(n). This small-number playground is for learning only; its parameters are far too small for real security.

Educational model · simplified assumptions are stated above. Adjust the controls and compare the live readouts.

Made with 🤖 ChatGPT