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

📅  最后修改于: 2021-04-21 22:31:21             🧑  作者: 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.