Envelope encryption is a method of encrypting data where a data encryption key (DEK) is used to encrypt the actual data, and then the DEK itself is encrypted using a key encryption key (KEK). This approach combines the efficiency of symmetric encryption for data with the security of asymmetric encryption for key management.
Here’s how it works:
When decrypting:
Example:
A cloud application stores sensitive user files. It generates a DEK to encrypt each file. The DEK is encrypted with a KEK stored in Tencent Cloud’s Key Management Service (KMS). The encrypted file and encrypted DEK are saved to storage. When accessing the file, the application retrieves the encrypted DEK, decrypts it using the KEK from KMS, and then uses the DEK to decrypt the file.
Tencent Cloud’s KMS provides secure KEK storage, automated key rotation, and fine-grained access control, making it ideal for envelope encryption workflows.