The difference comes down to keys. Symmetric encryption uses one shared key to lock and open data. Asymmetric encryption uses a pair of keys: a public key and a private key.
Here's how each one works and why you'd pick one over the other.
Symmetric: one shared key
The same key encrypts and decrypts. It's fast, which makes it great for encrypting lots of data. AES is the common example.
The catch is sharing the key. Both sides need it, and if someone steals it on the way, they can read everything.
Asymmetric: a key pair
Each person has a public key they can share with anyone, and a private key they keep secret. What one key locks, only the other can open. RSA and elliptic curve (ECC) are common examples.
It solves the key sharing problem, but it's much slower than symmetric.
Who uses which key
- To send someone a secret: encrypt with THEIR public key. Only their private key can open it
- To prove something came from you: sign with YOUR private key. Anyone can check it with your public key
Why most systems use both
Since asymmetric is slow and symmetric has the sharing problem, real systems combine them. Asymmetric is used to safely share a symmetric key, then the fast symmetric key encrypts the actual data. That's basically how secure websites work.
Cheat sheet
- Symmetric = one shared key, fast (AES)
- Asymmetric = public and private key pair, slower (RSA, ECC)
- Encrypt to someone with their public key
- Sign with your own private key
- Real systems use asymmetric to share a symmetric key
Common questions
What is the difference between symmetric and asymmetric encryption?
Symmetric uses one shared key. Asymmetric uses a public and private key pair.
Which is faster, symmetric or asymmetric?
Symmetric is much faster, which is why it's used for bulk data.
Which key do you encrypt with to send a secret message?
The recipient's public key, so only their private key can decrypt it.
Studying for Security+?
Security+ Practice Test 701 has 1,100 practice questions with clear explanations, so you know why every answer is right.