
HTTPS连接建立流程是 怎样的?
组装会话密钥是通过client端产生预主密钥,random numberC,server端的random numberS来进行的。

会话密钥:
把预主密钥,random numberC,andom numberS三个值通过一定的算法合成。
HTTPS都使用了哪些加密手段?为什么
1)连接建立过程中使用非对称加密,非对称加密很耗时。
2)后续通信过程使用对称加密
对称加密:
加密和解密使用的密钥是一样的。
密钥在网络中传输时容易被篡改、劫持。

非对称加密:
加密和解密使用的密钥是不一样的。
加密如果用公钥,解密就用私钥。
加密如果用私钥,解密就用公钥。

网友评论