Public-Key Cryptography
Key pairs, RSA, digital signatures, and how HTTPS gets its S.
Public-key cryptography lets strangers communicate securely without meeting first, and lets anyone verify who signed something.
1
Key pairs
Each person has a key pair:
- the public key, which anyone may have
- the private key, which never leaves its owner
Encryption: encrypt with the recipient's public key; only their private key can decrypt. Signatures: sign with your private key; anyone can verify with your public key.
RSA (Rivest–Shamir–Adleman, 1977) is the classic algorithm; elliptic-curve algorithms like Ed25519 are the modern choice.
2
TLS
TLS (Transport Layer Security) is the S in HTTPS:
- The server sends a certificate: its public key, signed by a certificate authority your browser trusts.
- Client and server use public-key crypto to agree on a fresh symmetric session key.
- The rest of the connection is encrypted with that symmetric key (fast).
Its predecessor, SSL, is broken and must not be used.
⚑ Report a problem with this room
Log in to report a problem.