A symmetric encryption algorithm means that the same key is used for encryption and decryption. Unlike symmetric encryption algorithms, asymmetric encryption algorithms require public and private keys. The public key and the private key are a pair. If the data is encrypted with the public key, it can only be decrypted with the corresponding private key.
Asymmetric encryption is more secure than symmetric encryption. Symmetrically encrypted communication both parties use the same key. If one party's key is leaked, the entire communication will be cracked.
Asymmetric encryption uses a pair of secret keys, one for encryption and the other for decryption, and the public key is public, and the secret key is kept by itself. It is not necessary to synchronize the secret key before communication, which avoids being locked in the process of synchronizing the private key. Risk of hackers stealing information.