DEK
The key that actually encrypts a piece of data, such as a file, database or disk, in envelope encryption.
In more detail
DEK stands for data encryption key. It is usually a random symmetric key, often one per file or dataset, and it is stored only in wrapped form, encrypted by a key encryption key. Because it is used heavily and sits near the data, it is protected by the outer key rather than kept directly in a key management service. Replacing it means re-encrypting the data it protects, so it is rotated only when necessary.
Examples
dek = demo_key("dek for orders.db, demo")row = seal(GCM, dek, n0, AAD, b"order 1042: ...")Related terms
- KEK — A key used only to encrypt other keys, never data directly.
- envelope encryption — Encrypting data locally with a data key, then encrypting that data key with a master key held in a key service, and storing both together.
- key wrapping — Encrypting one key with another key, using an algorithm designed for keys such as AES key wrap.
- symmetric encryption — Encryption where the same secret key both encrypts and decrypts, as with AES.
Taught in
- Post-Quantum Cryptography & Key Lifecycles — Cybersecurity Fundamentals, GRC & Cryptography