📜  对称和非对称密钥加密之间的区别

📅  最后修改于: 2021-09-13 03:06:06             🧑  作者: Mango

对称密钥加密:
加密是改变任何消息形式以保护它不被任何人阅读的过程。在对称密钥加密中,消息是使用密钥加密的,并且使用相同的密钥来解密消息,这使得它易于使用但安全性较低。它还需要一种安全的方法将密钥从一方转移到另一方。

非对称密钥加密:
非对称密钥加密基于公钥和私钥加密技术。它使用两个不同的密钥来加密和解密消息。它比对称密钥加密技术更安全,但速度要慢得多。

Symmetric Key Encryption Asymmetric Key Encryption
It only requires a single key for both encryption and decryption. It requires two key one to encrypt and the other one to decrypt.
The size of cipher text is same or smaller than the original plain text. The size of cipher text is same or larger than the original plain text.
The encryption process is very fast. The encryption process is slow.
It is used when a large amount of data is required to transfer. It is used to transfer small amount of data.
It only provides confidentiality. It provides confidentiality, authenticity and non-repudiation.
Examples: 3DES, AES, DES and RC4 Examples: Diffie-Hellman, ECC, El Gamal, DSA and RSA
In symmetric key encryption, resource utilization is low as compared to asymmetric key encryption. In asymmetric key encryption, resource utilization is high.

如果您希望与专家一起参加现场课程,请参阅DSA 现场工作专业课程学生竞争性编程现场课程。