Symmetric encryption and asymmetric encryption, asymmetric encryption
What is encryption? Encryption is divided into two parts: algorithm and key. The algorithm remains unchanged, and the key changes. For more information, see the following example.
Key: abcedfgh-> 12345678.
Algorithm: in plaintext, each bit is replaced by another bit in the key table.
For example, after adfh is encrypted, It is 1568.
Symmetric encryption is used if the encryption key K is the same as the decryption key K.
Advantages of symmetric encryption: Fast encryption.
Disadvantage of symmetric encryption: The key transmission is insecure.
What is asymmetric encryption, such:
The encryption key K and the decryption key K' are different in asymmetric encryption.
The advantage of asymmetric encryption: There is no key transmission security problem.
The disadvantage of asymmetric encryption: the encryption speed is slow.
In asymmetric encryption, the encryption key is also called the public key, and the decryption key is also called the private key. See:
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.