Introduction
Imagine sending a secret message to a friend but worried someone might read it on the way. This is the problem TLS/SSL solves by protecting information sent over the internet or networks so only the intended person can understand it.
Imagine sending a locked box with a secret message inside to a friend. You both have matching keys to open the box. Before sending, you agree on which lock and key to use so no one else can open it or change the message.
┌───────────────┐ Handshake ┌───────────────┐
│ Client │──────────────────────▶│ Server │
│ (Your device) │ │ (Website or │
│ │◀──────────────────────│ Server) │
└───────────────┘ └───────────────┘
│ │
│ Encrypted Data │
└─────────────────────────────────────▶