HTTPS Implementation principle
https (full name: Hypertext Transfer Protocol over secure Socket Layer), is a security-targeted HTTP channel, simply speaking is the security version of HTTP. That is, the SSL layer is added under HTTP, and the security base of HTTPS is SSL. The port number used for its
There are two basic types of encryption and decryption algorithms:
1) symmetric encryption : The key is only one, encryption and decryption for the same password, and the decryption speed is fast, the typical symmetric encryption algorithm has DES, AES and so on;
2) Asymmetric encryption : The key in pairs appear (and according to the public key can not infer the private key, according to the private key can not infer the public key), encryption and decryption using a different key (public key encryption requires private key decryption, private key encryption requires public key decryption), relatively symmetric encryption speed is slow, the typical asymmetric encryption algorithm has RSA, DSA and so on.
Let's take a look at the HTTPS communication process:
650) this.width=650; "src=" http://image60.360doc.com/DownloadImg/2013/04/2216/31820443_5.jpg "style=" border:none; margin:0px;padding:0px; "/>
Advantages of HTTPS communication:
1) The client-generated key can be obtained only by the client and the server;
2) encrypted data can only be plaintext by client and server;
3) client-to-server communication is secure.
This article from "Write a blog Money" blog, please be sure to keep this source http://dadonggg.blog.51cto.com/12672150/1948732
HTTPS implementation principle