Problem Statement
What is the key difference between symmetric and asymmetric encryption?
Explanation
Symmetric encryption uses a single secret key for both encryption and decryption. That means both sender and receiver must have the same key and keep it safe. Asymmetric encryption uses two distinct but mathematically related keys: a public key (shared openly) and a private key (kept secret). The public key encrypts data, and only the corresponding private key can decrypt it. This approach solves the key-distribution problem inherent in symmetric schemes. Understanding this difference helps you choose the right encryption method based on performance, key management, and use case.
