Skip to content
We areTOP 1%

What is the difference between HTTP and HTTPS?

EasyConceptDNS, HTTP & HTTPS
Track your progress
First attempt
Re-solve after a few days
Final pass before interviews

Answer

HTTPS is HTTP sent inside a TLS (Transport Layer Security) connection. Plain HTTP travels as readable text, while HTTPS encrypts it, protects it from tampering and proves the server's identity. HTTP uses port 80 by default and HTTPS uses port 443.

  • Confidentiality: anyone on the same Wi-Fi or at the ISP can read HTTP traffic, including passwords. With HTTPS they see only encrypted bytes, the server's IP address and usually the domain name.
  • Integrity and authentication: TLS detects any change made in transit, and the server's certificate, signed by a trusted certificate authority (CA), proves that you are talking to the real site and not an impostor.
  • Hybrid cryptography: asymmetric cryptography (a public and private key pair) is used only during the handshake to authenticate the server and agree on a shared key; fast symmetric encryption then protects the actual data.

Example: What an eavesdropper on the same Wi-Fi sees when you log in:

HTTP :  POST /login   user=asha&password=secret123
HTTPS:  17 03 03 00 4f 8a 2c e1 9b ...   (an unreadable TLS record)

More in DNS, HTTP & HTTPS

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account