Introduction
Imagine sending a secret letter through the mail, but anyone could open it and read it. The SSL/TLS protocol solves this problem by protecting information sent over the internet so only the intended person can see it.
Imagine you want to send a locked box with a secret message inside to a friend. You both agree on a special lock and key beforehand. When your friend receives the box, they use the key to open it and read the message safely.
┌───────────────┐ Handshake ┌───────────────┐
│ Client │──────────────────────▶│ Server │
│ (Your device) │ │ (Website) │
└───────────────┘ └───────────────┘
│ │
│ Secure Encrypted Data │
│◀──────────────────────────────────────▶│
│ │