HTTP is an excellent communication protocol, but everything has two sides. The protocol also has shortcomings, which are roughly as follows:
1. HTTP does not have encryption function The HTTP protocol itself does not have encryption function, so it is impossible to encrypt the content of requests and responses. HTTP messages are in plain text, and data packets can be easily stolen when transmitted between networks, such as using packet capture tools (Wireshark). After capturing the data packets, they are analyzed. Since the messages are transmitted in plain text, if the content is about important privacy such as personal information, it may be obtained by others and used, causing losses. 2. Encrypt the content Encrypting content is a good way to protect information. HTTP does not have an encryption mechanism, so a third party is needed to help implement encryption. There are many ways to encrypt content, such as:
It is mainly divided into two categories, symmetric encryption and asymmetric encryption (we will not discuss encryption in depth here, and friends who are interested can refer to relevant information).
3. The shortcomings of only encrypting the content
Therefore, only encrypting the content is not perfect. A more comprehensive security solution is needed to ensure not only the security of the content but also the security of communications and other aspects - HTTPS. 3. What are SSL and TSL? Before discussing HTTPS, we need to understand the SSL and TLS protocols.
SSL technology was initially developed by Netscape, which developed versions before SSL3.0 and then transferred the leadership to IETF. IETF developed the TSL protocol based on SSL. The current mainstream versions are SSL3.0 and TLS1.0. 4. Basic concepts of HTTPS HTTPS is not a new protocol, it is to replace the HTTP protocol communication interface part with SSL and TSL protocols. As shown in the following figure: Analysis: HTTP and TCP communicate directly at first, but now HTTP communicates with SSL first, and then SSL communicates with TCP. It can be understood that HTTP becomes HTTPS by adding an extra layer of SSL protocol. Below, HTTPS is expressed through a formula: HTTP + encryption + authentication + integrity protection = HTTPS 5. How does HTTPS communicate? Overview: The HTTPS communication process combines symmetric encryption and asymmetric encryption. When the HTTPS server establishes SSL communication, it will first send its public key to the client. After the client obtains the public key, it negotiates with the server through asymmetric encryption for the symmetric encryption key of the data transmission channel. Once the two parties have negotiated a session key, subsequent data communications will always use the symmetric encryption algorithm based on the session key. Specific process:
Is using HTTPS perfect?
HTTPS is slower than HTTP because it requires SSL communication in addition to TCP connection and HTTP request response. Secondly, the client and server need to perform encryption and decryption processing. When the number of visits is large, the load will increase compared to HTTP. In addition, HTTPS communication requires the purchase of a certificate, which may not be cost-effective for some services or small websites. 6. In what scenarios is HTTPS more suitable? In summary, HTTPS is suitable for encrypted communication in services that require high security, such as transaction payment, including some services that may contain personal sensitive information. For non-sensitive information, HTTP communication is used.
VII. Conclusion HTTP is an excellent protocol, but its security is relatively poor due to reasons such as its lack of support for encryption. There are many ways to improve security, such as using encryption algorithms to encrypt content. The HTTPS protocol provides a more complete solution. HTTPS is not a new protocol, but a combination of HTTP and SSL/TSL to achieve communication security. However, HTTPS also has its shortcomings, so it must be used reasonably in combination with specific scenarios to give full play to the powerful role of HTTPS. |
<<: Huawei releases next-generation CloudLink video conferencing solution
>>: How 5G will revolutionize healthcare
A few days ago, Xiao Wei shared with everyone the...
On December 12, Fuqianla, an Internet financial c...
spinservers has released a promotion for the upco...
Recently, the three major telecom operators have ...
I have read some information about the working pr...
[[399809]] On May 17, at the "2021 World Tel...
As 2017 was coming to an end, news about 5G becam...
After making an appointment on the mobile phone A...
[[428882]] According to Gartner's 2021 Hype C...
[51CTO.com original article] With the rapid devel...
All packages in BuyVM's Las Vegas data center...
Aoyozhuji, a long-established foreign VPS service...
2015 was a year in which new technologies matured...
During the interview process, HTTP is often asked...
The underlying resource management platform of di...