Quantum cryptography and post-quantum security

Security interviews separate three ideas that are often confused: quantum key distribution, post-quantum cryptography, and quantum attacks. Keep them apart.

14 questions. Reviewed December 2026. Answers are model answers to adapt, not scripts to memorise.

What interviewers test

  • Separating QKD from PQC
  • What breaks and what does not
  • Migration thinking

How to answer well

  • QKD uses quantum physics; PQC is classical maths believed to resist quantum attacks.
  • Grover halves symmetric key strength in bits; it does not break AES-256.
  • Name the NIST standards: ML-KEM, ML-DSA, SLH-DSA.

1 · Beginner

How does BB84 quantum key distribution work?

Alice sends qubits prepared in random bases (Z or X) with random bit values. Bob measures each in a random basis. They publicly compare bases, keep the positions where they matched (about half), and sample some bits to estimate the error rate. An eavesdropper measuring in the wrong basis disturbs the state, raising the error rate to roughly 25 % on the kept bits for an intercept-resend attack, which exposes her.

Likely follow-up: Why does no-cloning matter here?

Go deeper: BB84 Lab

2 · Beginner

What does Shor’s algorithm break, and what does it not?

It breaks public-key schemes based on factoring or discrete logarithms: RSA, Diffie–Hellman and elliptic-curve cryptography. It does not break symmetric ciphers or hash functions directly. Grover’s algorithm gives only a quadratic speed-up there, so doubling key lengths (AES-256 rather than AES-128) is the standard response.

Likely follow-up: Why does Grover only halve the key size in bits?

Common mistake: Saying quantum computers break all encryption.

3 · Beginner

What is post-quantum cryptography?

Classical algorithms, run on ordinary computers, believed to resist both classical and quantum attacks. They are based on problems such as lattices, hashes and codes. It is not quantum technology and needs no special hardware, which makes it the main practical defence.

Likely follow-up: How is it different from QKD?

4 · Intermediate

Which post-quantum standards has NIST published?

In August 2024 NIST finalised FIPS 203 (ML-KEM, derived from CRYSTALS-Kyber, for key establishment), FIPS 204 (ML-DSA, from CRYSTALS-Dilithium, for signatures) and FIPS 205 (SLH-DSA, from SPHINCS+, a hash-based signature). A further signature standard based on Falcon, FN-DSA, was expected as FIPS 206, and HQC was selected in 2025 as a backup key-encapsulation method. Check NIST for the current status.

Likely follow-up: Why have a hash-based signature as well as a lattice one?

Go deeper: Lesson: post-quantum cryptography

5 · Intermediate

What is ‘harvest now, decrypt later’?

An adversary records encrypted traffic today and decrypts it once a capable quantum computer exists. Data that must stay secret for many years, such as health, state or financial records, is at risk now even though no such machine exists yet. This is the main reason migration is urgent for long-lived secrets.

Likely follow-up: How would you prioritise what to migrate first?

6 · Intermediate

What are the limits of QKD in practice?

It needs dedicated quantum channels, range is limited by fibre loss unless trusted relay nodes or repeaters are used, rates are modest, and it protects key exchange only, so you still need authentication, usually via classical or post-quantum methods. Real devices have side channels that attacks have exploited. Several national security agencies recommend post-quantum cryptography over QKD for general use.

Likely follow-up: What is device-independent QKD?

Go deeper: BB84 Lab

7 · Intermediate

What is crypto-agility?

Designing systems so that algorithms can be swapped without redesigning everything: configurable negotiation, inventories of where cryptography is used, and the ability to run hybrid schemes that combine a classical and a post-quantum algorithm. It limits the cost of both migration now and further changes later.

Likely follow-up: What is a hybrid key exchange?

8 · Advanced

How large a quantum computer is needed to break RSA-2048?

Estimates fall as algorithms improve. Gidney and Ekerå’s 2019 estimate was about 20 million noisy qubits and 8 hours. Gidney’s 2025 paper estimates fewer than one million noisy qubits and under a week, with assumptions of 0.1 % physical error and a 1 µs cycle. Today’s machines have hundreds to low thousands of physical qubits without that error-corrected capacity, so RSA-2048 is not currently at risk, but planning horizons are driven by the trend.

Likely follow-up: Which assumptions would you stress-test?

Common mistake: Quoting a single number without its assumptions.

Go deeper: Shor’s Lab

9 · Advanced

Why are lattice problems believed to resist quantum attack?

No efficient quantum algorithm is known for problems like Learning With Errors or Short Integer Solution; Shor’s period-finding does not apply to them. Their hardness rests on worst-case-to-average-case reductions to lattice problems. This is a belief supported by years of cryptanalysis, not a proof, and one candidate (SIKE) was broken by a classical attack in 2022, which is why diversity of assumptions matters.

Likely follow-up: What happened to SIKE?

10 · Advanced

How would you plan an organisation’s migration?

Inventory all cryptographic use (protocols, libraries, certificates, hardware), classify data by required secrecy lifetime, prioritise long-lived confidential data and slow-to-change systems, adopt hybrid modes for key exchange first, test performance and size effects (post-quantum keys and signatures are larger), and track regulator timelines. Treat it as a multi-year programme.

Likely follow-up: Which systems are hardest to change?

11 · Beginner

Is Bitcoin safe from quantum computers?

Not guaranteed in the long term. Signatures based on elliptic curves could be forged by a large Shor-capable machine, and addresses whose public keys are already revealed are most exposed. Hashing is affected only by Grover’s quadratic speed-up. Today’s machines are far too small, and migrating to post-quantum signatures is a topic of active discussion.

Likely follow-up: Which part is more exposed, signatures or hashing?

12 · Intermediate

Why are post-quantum keys and signatures larger?

Lattice, code and hash-based schemes use bigger mathematical objects than elliptic curves to achieve their security level. Typical keys and signatures are hundreds to thousands of bytes or more, against tens of bytes for elliptic curves. This affects handshake size, certificates and constrained devices, so deployment needs testing.

Likely follow-up: What protocols are hit hardest by larger sizes?

13 · Intermediate

What is quantum random number generation and is it cryptographically useful?

Hardware that measures a quantum process such as photon path to produce random bits whose randomness rests on physics instead of algorithms. It can supply high-quality entropy, but practical devices still need testing for bias and a classical post-processing step, and a well-designed classical entropy source is also adequate for most uses.

Likely follow-up: What does a randomness extractor do?

14 · Advanced

What are the security assumptions behind BB84 and where can real systems fail?

Proofs assume ideal single-photon sources, perfect detectors and an authenticated classical channel. Real systems use weak laser pulses (opening photon-number-splitting attacks, countered with decoy states) and detectors that have been blinded in lab attacks. Security of an implementation is therefore about the device as built, not just the protocol.

Likely follow-up: What is the decoy-state method?

Keep studying