Skip to content

Interview question · Cryptography, PKI & TLS

Symmetric versus asymmetric cryptography: when is each used, and why do real protocols use both?

The trap is answering 'which is better'. Every protocol you use daily runs both, each doing the job the other cannot.

easyEssentialNewPreparation tags: Amazon, Google, MicrosoftUpdated Nov 2026

TL;DR: Symmetric cryptography (AES-GCM, ChaCha20-Poly1305) uses one shared key; it is fast and protects bulk data, but both sides need the key first. Asymmetric cryptography (RSA, elliptic curves) uses a key pair; it is slow but solves key distribution through key exchange and signatures. Real protocols use both: asymmetric to authenticate the other side and agree on a fresh key, then symmetric to encrypt the data. TLS, SSH and Signal all follow this pattern.

How to approach it

Define both in one line each, then state their strengths and weaknesses side by side, and land on hybrid use with TLS as the example. Mention what makes the asymmetric step trustworthy (authentication) to show you know where attacks happen.

A strong answer

FIG · HYBRID ENCRYPTION · EACH DOES WHAT IT IS GOOD AT
Asymmetric to agree a key, symmetric to move the data

Key exchange

ECDHE, slow, small

Signature

proves who you talk to

Derive keys

HKDF

Bulk data

AES-GCM, fast

SymmetricAsymmetric
KeysOne shared secretPublic key plus private key
SpeedVery fast, often hardware-acceleratedOrders of magnitude slower
SolvesEncrypting and authenticating data at volumeAgreeing on keys with strangers; proving identity
Hard partGetting the key to both sides securelyKnowing a public key really belongs to its claimed owner
ExamplesAES-GCM, ChaCha20-Poly1305, HMACX25519 / ECDHE, Ed25519, ECDSA, RSA

Why both. Two parties who have never met cannot use symmetric encryption until they share a key, and they cannot send a key over a network an attacker watches. Asymmetric cryptography solves exactly that, but it is too slow and too constrained to encrypt large data. So protocols combine them:

  1. Authenticate the server (and optionally the client) with signatures and certificates.
  2. Agree on a session key with ephemeral Diffie-Hellman (ECDHE), which also gives forward secrecy.
  3. Encrypt all traffic with an AEAD cipher under that key.

In TLS 1.3 the handshake does steps 1 and 2 in one round trip, and the record layer does step 3. The same shape appears in encrypted storage: a data key (symmetric) encrypts the object, and that data key is wrapped by a key held in a KMS, sometimes an asymmetric one.

Where it fails. Key exchange without authentication is open to a man in the middle. Asymmetric schemes in use today (RSA and elliptic curves) are expected to be broken by large quantum computers, which is why hybrid post-quantum key exchange, X25519 combined with ML-KEM (NIST FIPS 203, 2024), is being deployed in TLS. Symmetric ciphers with 256-bit keys are not meaningfully threatened.

What interviewers probe next

  • "Why not encrypt everything with RSA?" Slow, size-limited, and RSA key transport lacks forward secrecy; use it to set up a symmetric key instead.
  • "How do you know the server's public key is real?" A certificate chain to a trusted root, checked including the hostname.
  • "What changes with quantum computers?" Asymmetric key exchange and signatures need replacing; symmetric crypto mostly needs adequate key sizes.

What if?

What if · interview follow-ups

Hold your answer as the constraints change

Two services in different companies need to exchange confidential messages over the internet, and have never met or shared any secret.

  1. Start here

    Why not just use symmetric encryption?

How it's scored

Weak: Says asymmetric is "more secure" or describes only one side.

Hire: Explains the trade-off and the hybrid pattern with TLS as the example.

Strong Hire: Adds authentication of the exchange, forward secrecy and the post-quantum direction, and applies the pattern beyond TLS (envelope encryption).

Common mistakes

  • Claiming the data in TLS is "encrypted with the server's public key".
  • Forgetting that key exchange needs authentication.
  • Treating symmetric and asymmetric as alternatives rather than partners.
You just read a free answer. Every topic opens its first 5 answers to anyone. Sign in and the count per topic goes to 10, and we keep track of how far you get in every topic.Google sign-in · free · no payment details
HOW DID IT GO?
0
READING SIGNED OUT

Signing in doubles your free answers, from 5 to 10 per topic, and the site starts remembering you: mastery per topic, bookmarks, and a next-focus recommendation. Free, no card.

Sign in free
UP NEXT ON YOUR JOURNEY
DISCUSSION · 0

No comments yet. Share a correction or a different way to answer it.