Public-key cryptography · 05 Weaknesses and attacks

Public-key cryptography: weaknesses and attacks

The man-in-the-middle attack, weak keys, side channels and the quantum threat: where public-key cryptography can fail.

Man in the middle
If an adversary replaces Bruno’s public key with their own, Anna encrypts for the adversary while believing she is encrypting for Bruno. That is why certificates or key fingerprint checks are needed.
Faulty random generators
Keys generated with little randomness can be guessed or share factors with other keys.
Keys that are too short
Parameters once secure become attackable as computing power grows.
Vulnerable implementations
Programming errors, overly informative error messages, side channels such as timing and power consumption.
Theft of the private key
All security depends on safeguarding the private key: if it is stolen, the adversary becomes you.
Quantum computers
Shor’s algorithm would break RSA, Diffie-Hellman and elliptic curves: hence post-quantum cryptography.
Continue with
06 Use today

Public-key cryptography today

Where public-key cryptography is used every day: HTTPS, digital signatures, messaging, passkeys, cryptocurrencies, software updates.

↑