Science & TechHow it works
What the padlock in your address bar actually does.
With HTTPS, your browser and the website first exchange public keys and a certificate that vouches for the site's identity. From that, both compute a secret session key that nobody along the route can read. Everything afterwards is encrypted with it. The protocol is called TLS.
Useful: The padlock means the connection can't be eavesdropped. It says nothing about whether the site is honest.
Source: en.wikipedia.org