Data Encryption Key
A Data Encryption Key (DEK) is a cryptographic key used to directly encrypt and decrypt data, such as files, database records, or messages. To keep the DEK itself safe, it is often encrypted (or 'wrapped') by another key called a key encryption key (KEK), an approach known as envelope encryption. This layered arrangement is intended to help protect sensitive data while allowing the key that protects it to be managed separately.
A Data Encryption Key (DEK) is a symmetric or asymmetric key used to encrypt and decrypt data other than keys, as distinguished from a key encryption key (KEK), which is used to encrypt keys. In common key-management architectures, the DEK operates directly on protected data (for example, files, database entries, or messages) and is itself wrapped by a KEK under a scheme referred to as envelope encryption, enabling separation between the key that protects data and the key that protects the DEK. Implementations may scope a DEK at various levels—for example, a tenant-level DEK used to protect sensitive data in a specific service. Note that the effect of any DEK-based encryption on PCI DSS scope depends on the specific implementation, key-management controls, and validation, not on the use of encryption alone; confirm applicable key-management requirements against the current published PCI DSS.
Why it matters
Separating the key that protects data from the key that protects that key is a foundational key-management practice. When a Data Encryption Key (DEK) operates directly on sensitive data—files, database records, or messages—wrapping it under a key encryption key (KEK) through envelope encryption allows the two keys to be stored, rotated, and access-controlled independently. This separation is intended to limit exposure: compromise of encrypted data at rest does not by itself yield usable plaintext unless the corresponding DEK and, in turn, its wrapping KEK are also obtained.
For teams handling payment data, the distinction matters because encryption alone does not determine how a control affects PCI DSS scope. Whether DEK-based encryption reduces scope, and how it must be managed, depends on the specific implementation, the surrounding key-management controls, and how the design is validated—not on the presence of encryption as a label. Sensitive authentication data such as full track data, card verification values, and PIN blocks must not be stored after authorization even when encrypted, so applying a DEK to such data does not create an exception to that prohibition.
Because requirement numbering and wording for key-management controls differ between PCI DSS versions, teams should confirm the applicable key-management obligations against the current published standard rather than assuming a fixed requirement. Treating the DEK and KEK as separately governed assets supports clearer key-lifecycle management, but the security benefit is realized only when generation, storage, access, rotation, and retirement are all implemented and validated correctly.
Who it's relevant to
Inside DEK
Common questions
Answers to the questions practitioners most commonly ask about DEK.