What if anyone in between could read the password you type, just like that? With HTTP, that's exactly what happens.
What HTTP is
When you type edwhere.com and press Enter, your browser sends a request: "give me edwhere.com's page". The website comes back as the reply. Both happen using HTTP, the HyperText Transfer Protocol, the protocol used to send websites back and forth.
The problem with plain HTTP
HTTP comes in two versions: plain HTTP and HTTPS, HTTP Secure. Say you log in to a site with a username and password. They travel as a packet from your computer to the server. With plain HTTP, that packet isn't encrypted: your real username and password travel in a form anyone can read.
On the way, the packet passes through lots of devices: your Wi-Fi router, your ISP, other networks. Any of them, or an attacker doing ARP spoofing on your Wi-Fi (lesson 11), can see it.
HTTPS encrypts it
With HTTPS, the moment you submit the login, the data is encrypted (using TLS): turned into a form nobody can read, which only opens with the right key at the server. That's what the padlock in the address bar means. It's also proof you're talking to the real site, because the server must show a valid certificate for that domain.
Rule of thumb: never type a password on a page without the padlock.
See it yourself
In Wireshark (lesson 14), capture your own traffic while logging in to a test site you control with dummy credentials. On an HTTP packet you'll read the username and password directly; on an HTTPS packet you'll see only "Encrypted Application Data". Never capture other people's logins.
Key takeaways
- HTTP is how browsers fetch websites.
- Plain HTTP sends data, including passwords, as readable text.
- HTTPS encrypts data with TLS; the padlock shows it.
- Never enter a password on a page without HTTPS.
Quick quiz
Pick an answer to check yourself. Answer both to mark this lesson done.
1. What happens to your password when you log in over HTTP?
- A) It travels encrypted
- B) It travels in a form anyone can read
- C) It never reaches the server
- D) It goes to the DNS server
Show answer
Answer: B. HTTP doesn't encrypt, so devices in between can read the username and password directly.
2. What does the "S" in HTTPS stand for?
- A) Speed
- B) Server
- C) Secure
- D) Switch
Show answer
Answer: C. HTTPS = HTTP Secure. Data is encrypted so it can only be opened with the right key.
Frequently asked questions
What is the difference between HTTP and HTTPS?
HTTP sends data as plain text. HTTPS encrypts it with TLS, so devices in between cannot read it, and proves you are talking to the real site.
Is HTTPS completely safe?
HTTPS protects data in transit and confirms the site's domain. It doesn't make a malicious site safe, so still check the domain name carefully.
Which port does HTTPS use?
Port 443. Plain HTTP uses port 80.