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.

In more detail

Only the small encrypted data key ever goes back to the key service to be decrypted, so bulk data never leaves your system. Deleting the master key makes every wrapped data key, and so every copy of the data, unreadable.

Examples

wrapped = seal(GCM, kek_v1, n1, AAD, dek)  # stored next to the data
Rotating the KEK rewrote a few dozen bytes; the encrypted row never changed

Related terms

Taught in

References

Certification courses