Math
Toy RSA Demonstrator
Walk through tiny RSA with user-provided small primes: n, φ(n), e, d, and encrypt/decrypt steps. Educational only—not production keys.
Runs entirely in your browser; input is not sent to our servers.
Messages, keys, passwords, plaintext, ciphertext, and files are never stored in
localStorage, history, or analytics payloads.
Distinct prime ≤ 100,000.
Distinct prime ≤ 100,000.
Must satisfy 1 < e < φ(n) and gcd(e, φ(n)) = 1.
Integer with 0 ≤ m < n.
n = pq
φ(n)
Private d
Ciphertext c
Decrypted m
Sources
Related calculators
More tools in Math and popular picks.