Stewdent.eu
▾

HTTPS and Secure Web

HTTPS uses encryption to protect data travelling between your browser and a website, keeping your passwords and personal information safe.

Last updated: 14 November 2025

★★☆☆☆ Level 2computingDataencryptionhttpsssltlsweb-security3 min read

Report an error

What is HTTPS?

When you visit a website, your browser and the web server exchange data across the internet. Without encryption, anyone on the same network could read that data — including your passwords, credit card numbers, and private messages.

HTTPS (HyperText Transfer Protocol Secure) is the encrypted version of HTTP. The "S" means the connection is protected using a protocol called TLS (Transport Layer Security).

How to Spot a Secure Website

Modern browsers make it easy to check if a connection is secure:

  • A padlock icon appears in the address bar
  • The URL begins with https:// rather than http://
Warning

Never enter a password, payment details, or personal information on a website that only uses HTTP (no padlock). Your data could be intercepted.

How HTTPS Works: The TLS Handshake

When your browser connects to an HTTPS website, a process called the TLS handshake happens in milliseconds:

  1. Your browser contacts the server and says "I want a secure connection" and lists the encryption methods it supports.
  2. The server responds with its digital certificate (proof of its identity) and its public key.
  3. Your browser checks the certificate is valid (signed by a trusted authority) and uses the public key to securely share a session key.
  4. Both sides now use the shared session key with symmetric encryption (AES) for the rest of the conversation.

This clever combination uses asymmetric (public-key) encryption just to exchange the session key, then fast symmetric encryption for all the actual data.

Note

A digital certificate is like a passport for a website. It is issued by a trusted organisation called a Certificate Authority (CA), and it proves the website really is who it claims to be.

Why HTTPS Matters

HTTPS protects you in three ways:

ProtectionWhat it means
ConfidentialityOnly you and the website can read the data
IntegrityData cannot be changed in transit without being detected
AuthenticationThe certificate proves you are talking to the real website, not an imposter

HTTPS Everywhere

Today, almost all websites use HTTPS. Search engines like Google rank HTTPS sites higher, and modern browsers warn users when visiting HTTP sites. If you are building a website, using HTTPS is no longer optional — it is expected.

Practice Problems

Describe two things you should check before entering your bank account password on a website.

Show answer
Any two from: check the URL begins with https://; check there is a padlock icon in the address bar; check the website address is correct and not a misspelling; check the digital certificate is valid by clicking the padlock.

Explain why HTTPS uses both asymmetric and symmetric encryption rather than using just one type.

Show answer
Asymmetric encryption is used during the handshake to securely exchange the session key — it solves the key distribution problem. However, asymmetric encryption is slow. Once the session key is shared, both sides switch to fast symmetric encryption (AES) for the actual data transfer. This combination gives both security (key exchange) and performance (fast data encryption).