@engineers_feed I disagree with this binary view; a middle ground must exist. Picture a world without fine music and art. For argument's sake, let's accept your point. Kids don't idolize musicians, actors, or athletes; it's society that undervalues scientists. #BalancingRoleModels
How does HTTPS work?
Hypertext Transfer Protocol Secure (HTTPS) is an extension of the Hypertext Transfer Protocol (HTTP.) HTTPS transmits encrypted data using Transport Layer Security (TLS.) If the data is hijacked online, all the hijacker gets is binary code.
How is the data encrypted and decrypted?
Step 1 - The client (browser) and the server establish a TCP connection.
Step 2 - The client sends a “client hello” to the server. The message contains a set of necessary encryption algorithms (cipher suites) and the latest TLS version it can support. The server responds with a “server hello” so the browser knows whether it can support the algorithms and TLS version.
The server then sends the SSL certificate to the client. The certificate contains the public key, host name, expiry dates, etc. The client validates the certificate.
Step 3 - After validating the SSL certificate, the client generates a session key and encrypts it using the public key. The server receives the encrypted session key and decrypts it with the private key.
Step 4 - Now that both the client and the server hold the same session key (symmetric encryption), the encrypted data is transmitted in a secure bi-directional channel.
Why does HTTPS switch to symmetric encryption during data transmission? There are two main reasons:
1. Security: The asymmetric encryption goes only one way. This means that if the server tries to send the encrypted data back to the client, anyone can decrypt the data using the public key.
2. Server resources: The asymmetric encryption adds quite a lot of mathematical overhead. It is not suitable for data transmissions in long sessions.
Over to you: how much performance overhead does HTTPS add, compared to HTTP?
–
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): https://t.co/FIzCeaWsZV
Best motivation to do well rn is to be just better than 42$ chatGPT pro subscription.
If you’re earning 21K $ per month are you really 500X better than a browser webpage connected to a azure datacentre hivemind.
Ruby serenaded me into a career as a programmer. Before Ruby, code was a means to an end. After Ruby, code was flow, growth, and the greatest intellectual endeavor I’ve ever found. I love Ruby as much today as when we first met in ‘03. Thank you @yukihiro_matz. Happy #ruby30th ❤️
Any fool can write code that a computer can understand. Good programmers write code that humans can understand. — Martin Fowler
#code#softwaredevelopment#programming