Envelope encryption is a high-performance encryption/decryption solution for massive amounts of data. For encryption of large files or performance-sensitive data, use the GenerateDataKey API to generate a data encryption key (DEK). Only the DEK need to be transferred to the KMS server (which are encrypted/decrypted with a CMK), and all data are processed with efficient local symmetric encryption which has little impact on user access.
In actual business scenarios where massive amounts of data needs to be encrypted with high encryption performance needed, a DEK can be generated to encrypt/decrypt local data, which not only meets the requirements for encryption performance, but also enables KMS to keep DEKs random and secure.
Item | Sensitive Data Encryption | Envelope Encryption |
---|---|---|
Related key | CMK | CMK, DEK |
Performance | Symmetric encryption, remote call | Remote symmetric encryption for small amounts of data, and local symmetric encryption for massive amounts of data. |
Key scenarios | Keys, certificates, and small data entries; suitable for scenarios with low call frequency | Massive amounts of data; suitable for scenarios with high requirements for encryption performance |
In this scenario, a CMK generated in KMS, as an important resource, is used to generate and get the DEK plaintext and ciphertext. Based on your actual business needs, you can first encrypt local data through the DEK plaintext in the memory and store the DEK ciphertext and ciphertext data in the disk, then decrypt the DEK ciphertext using KMS when necessary, and finally decrypt the data in the memory using the decrypted DEK plaintext.
SecretId
and SecretKey
:SecretId
and SecretKey
, which are your unique credentials. Tencent Cloud's service systems need such credentials to call Tencent Cloud APIs.SecretId
and SecretKey
:
Was this page helpful?