RSA decryption uses the private key to recover the original message from ciphertext. Core idea:
- Only the private key can reverse what was encrypted with the matching public key
If a private key is leaked, any attacker can decrypt any message encrypted to that public key. Try it (demo):
- Copy the ciphertext produced in the encryption step
- Paste the private key
- Decrypt
- Confirm you got the original plaintext back