In one page
That little padlock means your browser and a server you've never met agreed on a secret no one else can read. Here's how they pull it off — in front of everyone.
The internet is a public road. Every packet between you and a website passes through routers, Wi-Fi, and cables you don't control. Anyone on that road can read plain http:// traffic like a postcard. HTTPS turns the postcard into a sealed envelope — and, crucially, lets you check whose mailbox you're really talking to.
The clever part is step 4: two strangers compute the same secret while everyone watches, and no observer can reproduce it. That's public-key cryptography, and it's why the padlock can be trusted.
It promises two things: the connection is encrypted, and the certificate matches the domain in your address bar. It does not promise the site is honest or safe. A scam can buy a certificate too. So the padlock means “no one is listening in,” not “you can trust whoever is on the other end.” Always read the domain, not just the lock.