Symmetric encryption and asymmetric encryption are two types of cryptographic techniques used to secure data and communications, but they differ in their methods of encryption and decryption.
šŸ”¹ In symmetric encryption, a single key is used for both the encryption and decryption of data. It is faster and can be applied to bulk data encryption/decryption. For example, we can use it to encrypt large amounts of PII (personally identifiable information). It poses challenges in key management because the sender and receiver share the same key.
šŸ”¹ Asymmetric encryption uses a pair of keys: a public key and a private key. The public key is freely distributed and used to encrypt data, while the private key is kept secret and used to decrypt the data. It is more secure than symmetric encryption because the private key is never shared. However, asymmetric encryption is slower because of the complexity of key generation and mathematical computations. For example, HTTPS uses asymmetric encryption to exchange session keys during the TLS handshake, and after that, HTTPS uses symmetric encryption for subsequent communications.