What is encryption? Encryption is divided into two parts: algorithm and secret key. The algorithm is constant, the key is changed, see the following example.
Secret key: abcedfgh->12345678.
Algorithm: Each bit in the plaintext is replaced by another bit in the key table.
For example, ADFH is encrypted after 1568.
Encryption key K decryption Key K ' is the same as symmetric encryption.
Advantages of Symmetric encryption: fast encryption.
The disadvantage of symmetric encryption: Key transmission is not secure.
What is non-symmetric encryption, such as:
Encryption key K decryption key K ' is not the same as asymmetric encryption.
Advantages of Asymmetric Encryption: there is no key transport security issue.
The disadvantage of asymmetric encryption: encryption is slow.
In asymmetric encryption, the encryption key is also called the public key, and the decryption key is called the private key. See:
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Symmetric and Asymmetric encryption