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, we shared the Black Friday VPS pr...
If you were to pick the most used feature in Chro...
Industry is the foundation of a country and the m...
In the tide of information and communication tech...
01.Everyone is paying attention to the 5G Interne...
Why did the once-noisy "big event" die ...
[[344212]] This article is reprinted from the WeC...
IPv6 is the abbreviation of Internet Protocol Ver...
This year is a period of large-scale 5G construct...
RAKsmart is a long-established foreign merchant o...
[[394613]] On April 20, China Mobile announced it...
On October 25, operator T-Mobile announced that i...
Hello everyone, I am Brother Shu. In complex dist...
Recently, on the occasion of its seventh annivers...
Hengchuang Technology (henghost.com) has released...