Problem Statement
What is envelope encryption with AWS KMS?
Explanation
Envelope encryption uses short-lived data keys to encrypt content and then protects those data keys under a key encryption key managed by KMS. It scales and limits key exposure while keeping decryption under API control.
Code Solution
SolutionRead Only
GenerateDataKey → use plaintext DEK to encrypt → store ciphertext DEK alongside data → decrypt via KMS when needed
