The padlock in your browser stands for a few building blocks: hashes, encryption, key exchange, signatures and certificates. This article explains each one with small, real examples and shows how they fit together.
Every time you open a website over HTTPS, your browser and a server that have never met agree on a secret key, the browser checks that the server really is who it claims to be, and everything that follows is encrypted. All of this happens in a fraction of a second, in public, over a network anyone can listen to. It sounds like magic, but it is built from a handful of ideas that are surprisingly easy to understand once you see them one at a time.
We take them apart in the order they build on each other: hashes, symmetric encryption, public-key cryptography, key exchange, signatures, certificates, and finally the TLS 1.3 handshake that ties them together. Along the way we look at the real certificate of this site, farschidnia.de, and at the mistakes that break HTTPS in practice.
1. The Three Problems HTTPS Solves
When your browser talks to a server, an attacker on the network (a public Wi-Fi, a compromised router, anyone on the path) can do three things: read the traffic, change it, or pretend to be the server. HTTPS has an answer to each:
| Threat | Protection | Building block |
|---|---|---|
| Someone reads the traffic | Confidentiality | Symmetric encryption (AES, ChaCha20) |
| Someone changes the traffic | Integrity | Hashes and MACs, built into AEAD ciphers |
| Someone pretends to be the server | Authenticity | Signatures and certificates |
| Precondition: both sides need a shared key | Key exchange | Diffie-Hellman (X25519) |
Encryption alone is not enough. An encrypted connection to an attacker is still a connection to an attacker. That is why the certificate, the part most people think of as "SSL", is about identity, not about encryption. In normal HTTPS only the server proves its identity; the client stays anonymous until it logs in. (Both sides proving it, with client certificates, is called mutual TLS.)
A note on names: SSL is the old protocol from the 1990s, broken and retired. Its successor is , now at version 1.3. People still say "SSL certificate", but every modern HTTPS connection uses TLS.




