Symmetric Encryption
One shared key — both lock & unlock
AES-256
Asymmetric Encryption
Public key locks, Private key unlocks
RSA / ECC
🔑 Symmetric
Ready
Alice
sender
Bob
receiver
Shared Key
Same Key
🔐 Asymmetric
Ready
Alice
sender
Bob
receiver
Bob's Public Key
Bob's Private Key
Bob's Mailbox
🔑 The Shared Key Analogy
Alice and Bob both have a copy of the same house key. Alice locks the box with her key,
sends it to Bob, and Bob unlocks it with his identical key. Problem: How did they share
the key in the first place without someone intercepting it?
📬 The Mailbox Analogy
Bob puts a mailbox on his front lawn — anyone can drop
a letter in through the slot (encrypt with public key). But only Bob has the key to open the back and read the letters (decrypt with private
key). No shared secret needed!
🔑 Symmetric Details
Key Count:1 key (shared)
Speed:⚡ Very fast
Key Size:128 / 256 bits
Algorithms:AES, ChaCha20
Use Case:Bulk data encryption
Weakness:Key distribution
Performance
AES-256-GCM:~1 GB/s
Hardware:AES-NI CPU instruction
🔐 Asymmetric Details
Key Count:2 (public + private)
Speed:🐢 1000× slower
Key Size:2048 / 4096 bits
Algorithms:RSA, ECDSA, Ed25519
Use Case:Key exchange, signatures
Strength:No shared secret!
Math Basis
RSA:Prime factorization
ECC:Elliptic curve discrete log
Welcome! Select a scenario and click "Run" to watch both encryption methods
work.