RSA encryption simulator
Walk through the RSA public-key cryptosystem end to end with your own primes. Enter two primes p and q and a numeric message m: the simulator computes the modulus n = pq and the totient φ = (p−1)(q−1), picks or validates a public exponent e coprime to φ, derives the private exponent d = e⁻¹ mod φ, then encrypts c = mᵉ mod n and decrypts back mᵈ… = m — every step shown with big-integer arithmetic. The definitive way to see why RSA actually works.
Related tools
All Numbers & arithmetic tools →Open RSA encryption simulator and you get an answer straight away, with no account to create. It covers the simulator computes the modulus n = pq and the totient φ = (p−1)(q−1), picks or validates a public exponent e coprime to φ, derives the private exponent d = e⁻¹ mod φ, then encrypts c = mᵉ mod n and decrypts back mᵈ… = m — every step shown with big-integer arithmetic. The definitive way to see why RSA actually works — adjust any of them and the result follows immediately.
How to use it
- Open the tool — no signup or install needed.
- Enter your input or adjust the available options.
- Get your result instantly, then copy or download it.
Frequently asked questions
What does RSA encryption simulator do?
Walk through the RSA public-key cryptosystem end to end with your own primes. Enter two primes p and q and a numeric message m: the simulator computes the modulus n = pq and the totient φ = (p−1)(q−1), picks or validates a public exponent e coprime to φ, derives the private exponent d = e⁻¹ mod φ, then encrypts c = mᵉ mod n and decrypts back mᵈ… = m — every step shown with big-integer arithmetic. The definitive way to see why RSA actually works.
What does a concrete case look like?
p = 61, q = 53 → n = 3233, φ = 3120, e = 17, d = 2753 — the tool shows every step in between, not just the final figure.
What does it take into account?
It factors in the simulator computes the modulus n = pq and the totient φ = (p−1)(q−1), picks or validates a public exponent e coprime to φ, derives the private exponent d = e⁻¹ mod φ, then encrypts c = mᵉ mod n and decrypts back mᵈ… = m — every step shown with big-integer arithmetic. The definitive way to see why RSA actually works. Change any of them and the output follows immediately.
When would I actually use this?
Reading a number written another way: a Roman numeral on a monument, a hexadecimal colour, a binary byte, or a fraction that needs reducing.
What is the most common mistake?
Assuming a decimal fraction survives a change of base. A tenth is exact in decimal and infinitely repeating in binary, which is why 0.1 + 0.2 is not 0.3 in most programming languages.
How is RSA encryption simulator different from Soroban abacus simulator?
They sit next to each other but answer different questions: Soroban abacus simulator is the one to open when you need it to an interactive Japanese soroban you can actually use. Click the beads across thirteen columns — one heaven bead worth five and four earth beads worth one each — and the decimal value updates live beneath. Clear it, roll a random number, type a value to set the beads, or solve a quick addition, subtraction, multiplication or division and show the answer on the frame. Pick whichever matches what you're starting from — both are free.
Is there a tool for the next step?
Logic Gate Simulator is the closest one after this: Draws the gate diagram for a boolean expression and lets you flip each input to watch the signal travel through. Half-adder, multiplexer, parity and majority circuits are one click away.
Where do the figures come from?
Base conversion and number-theory results are exact. Roman numerals follow the standard subtractive form used since the Middle Ages, which is not the only one the Romans themselves used.