📅  最后修改于: 2020-11-10 04:38:01             🧑  作者: Mango
几千年来一直没有改变如何实现隐私的概念:消息无法加密。该消息必须对所有未授权方都呈现为不透明。良好的加密/解密技术可在某种程度上实现隐私。此技术可确保窃听者无法理解消息的内容。
加密:加密是指发件人将原始信息转换为另一种形式,并通过网络发送难以理解的消息。
解密:解密将逆转加密过程,以便将消息转换回原始形式。
将在发送者站点上加密的数据称为纯文本,而加密的数据称为密文。数据在接收方站点被解密。
有两种类型的加密/解密技术:
高效:私钥算法比使用公钥加密算法对消息进行加密的时间更少,因此加密消息的时间更短。其原因是密钥的大小很小。由于这个原因,秘密密钥算法主要用于加密和解密。
密钥加密/解密具有以下缺点:
在上图中,我们看到A正在将消息发送给用户B。“ A”使用公钥加密数据,而“ B”使用私钥解密数据。
Basis for Comparison | Secret Key Encryption | Public Key Encryption |
---|---|---|
Define | Secret Key Encryption is defined as the technique that uses a single shared key to encrypt and decrypt the message. | Public Key Encryption is defined as the technique that uses two different keys for encryption and decryption. |
Efficieny | It is efficient as this technique is recommended for large amounts of text. | It is inefficient as this technique is used only for short messages. |
Other name | It is also known as Symmetric Key encryption. | It is also known as Asymmetric Key Encryption. |
Speed | Its speed is high as it uses a single key for encryption and decryption. | Its speed is slow as it uses two different keys, both keys are related to each other through the complicated mathematical process. |
Algorithms | The Secret key algorithms are DES, 3DES, AES & RCA. | The Public key algorithms are Diffie-Hellman, RSA. |
Purpose | The main purpose of the secret key algorithm is to transmit the bulk data. | The main purpose of the public key algorithm is to share the keys securely. |