RSA Encryption Playground
Explore Public Key Cryptography with Small Primes
🧔
Bob
The ReceiverStep 1: Key Generation
1Bob needs to generate a Public Key to share and a Private Key to keep secret.
Modulus (n = P × Q)
--
Totient (φ = (P-1) × (Q-1))
--
Public Key
(e=--, n=--)
Shared with Alice
Private Key
(d=--, n=--)
Kept Secret
👩
Alice
The SenderStep 2: Encryption
2Alice uses Bob's Public Key to encrypt her message.
Formula:
C = Me mod n
Calculation:
Me
mod n
Ciphertext (C):
--
Alice sends the Ciphertext C to Bob...
🧔
Bob
The ReceiverStep 3: Decryption
3Bob receives the Ciphertext and decrypts it with his Private Key.
Formula:
M = Cd mod n
Calculation:
Cd
mod n
Decrypted Message (M):
--