Problem Statement
Explain the difference between symmetric and asymmetric encryption with examples.
Explanation
Symmetric encryption uses the same key for both encryption and decryption, making it fast and efficient. Examples include AES and DES. However, key distribution is a challenge because both parties must securely share the same key. Asymmetric encryption uses a public key for encryption and a private key for decryption. It is slower but solves the key distribution problem. RSA and ECC are common examples. In practice, systems combine both—using asymmetric encryption to exchange symmetric session keys.