How TLS Stops Hackers From STEALING Your Credit Card?

This post is a part of the post series about computer networking fundamentals (explained simple).
Read the previous post on computer latency by clicking here.
Do you use internet banking? If you are not stuck in the dinosaur age, I am sure that you have an internet banking app on your phone (my grandmother still signs the transfers manually, but she doesn’t read tech blogs).
Now let’s use this to explain why the security of your connection matters.
Your payment request to your bank (say, to pay for an XYZ in an online store) is traveling over the public internet — XYZ being something you do not need but think you do — e.g., a pizza oven.

As you already know, the request is traveling (hopping) over a bunch of servers till the request reaches your bank’s computer.
These servers have a public IP, and someone can steal (intercept) your credit card details along the way!
TLS (Transport Layer Security)
To reduce the likelihood of fraud, the smart guys invented TLS (Transport Layer Security).
With TLS, when the connection is initiated from your computer, and the sensitive information is sent over the internet, no attacker can benefit from your private details since the data is scrambled (appears random) during the transit!
So, for everyone except you and your bank, the payment instructions will look like this.

The majority of today’s websites and apps actually use TLS. For instance, you can tell if a website uses the TLS protocol if it has the letter S in the URL (next to HTTP) — so, HTTPS. This goes together with a padlock next to the address (🔒).
Based on this, most modern browsers will not even let you access the websites that do not use the secured connection (TLS) — you might see the warning.

All right, you know why you should care for TLS. Let’s now zoom in and understand what’s behind the scenes.
TLS handshake
The secured connection between server and client is established via the TLS handshake process — client here means a device accessing the server.
This can be a website (browser), mobile app (REST-API), CLI (command line interface) client, or anything capable of contacting the server.






