且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

HTTPS使用非对称或对称加密?

更新时间:2023-02-06 12:49:04

***的答案是两者都做. TLS使用非对称加密来首先建立一方或双方的身份.其次,它使用非对称加密将密钥交换为对称密码.因此,非对称仅在通信的初始设置期间使用.

The best answer is that it does both. TLS uses asymmetric encryption to first establish identity of one or both parties. Secondly, it uses asymmetric encryption to exchange a key to a symmetric cipher. So asymmetric is only used during the initial setup of communication.

其余部分使用的对称加密在传输大量数据时更快,更高效.密钥较小,这通常就是为什么它更快的原因,但是它的算法也更易于处理.

Symmetric encryption which is used through the rest is faster and more efficient with large amounts of data transfer. The keys are smaller which is generally why it's faster, but it's algorithm is also easier to process.

就指南而言,简单的Google搜索将为您带来很多好处.我从 IBM 看起来不错.他们删除了一些多余的细节,以使其更易于理解.

As far as a guide goes, a simple Google search will give you plenty. The one I found from IBM looks decent. They removed some of the excess detail to make it easier to understand.