Symmetric vs.
Asymmetric Encryption
Understand the two fundamental approaches to encrypting data: one key shared, or a key pair split between public and private.
What Is Encryption?
Encryption is the process of converting plaintext (readable data) into ciphertext (scrambled data) using a mathematical algorithm and a key. Only someone with the correct key can reverse the process and recover the original message.
Core Terminology
Why Does It Matter?
Symmetric Encryption
Symmetric Algorithms
Asymmetric Encryption
Asymmetric Algorithms
The Key Distinction
Hybrid Encryption
How to Choose
Example: File Encryption
You want to encrypt a 2 GB video file stored on your laptop. No one else needs to decrypt it: only you.
Example: Secure Email
Alice needs to send a confidential email to Bob. They have never met and cannot exchange a secret key in person.
Example: HTTPS in Action
When you visit a website over HTTPS, your browser and the server perform a TLS handshake that combines both types of encryption:
Common Mistakes
Side-by-Side Comparison
| Symmetric | Asymmetric | |
|---|---|---|
| Keys | 1 shared secret key | 2 keys (public + private) |
| Speed | Very fast | 100-1000x slower |
| Key Size | 128 - 256 bits | 2048 - 4096 bits (RSA) |
| Key Distribution | Problem: must share securely | Solved: public key is open |
| Use Cases | Bulk data encryption, disk encryption, VPN tunnels | Key exchange, digital signatures, email encryption |
| Algorithms | AES, ChaCha20, 3DES | RSA, ECC, Diffie-Hellman |
| Non-repudiation | No | Yes (via digital signatures) |
Question 1 of 5
In symmetric encryption, how many keys are used to both encrypt and decrypt data?
Question 2 of 5
Which of the following is the primary advantage of asymmetric encryption over symmetric encryption?
Question 3 of 5
In a TLS/HTTPS handshake, which combination of encryption types is used?
Question 4 of 5
Alice wants to send Bob an encrypted message. She uses Bob's public key to encrypt. Who can decrypt it?
Question 5 of 5
You need to encrypt a 50 GB database backup stored locally. No one else will access it. Which approach is most appropriate?