Digitorn
Digitorn
All terms
Security

Envelope encryption

An encryption scheme where each row has its own data key, and that data key is wrapped by a master key.

also known as: DEK + KEK
In depth

Envelope encryption is the standard pattern for storing many secrets without ever decrypting them en masse. Each credential row carries a per-row data encryption key (DEK), the DEK is encrypted with a master key (KEK) held by your KMS. To use a credential, the runtime asks the KMS to unwrap the DEK, then uses the DEK to decrypt the secret. The KEK never leaves the KMS, the DEKs never live unencrypted on disk.

Related concepts
Newsletter

Get the next post in your inbox.

Engineering notes from the Digitorn team. No marketing, no launch announcements, no "10 prompts that will change your life". Just the things we write that we'd want to read.

One-click unsubscribe. We never share your address. Powered by our own infrastructure, not a tracker.

More in Security

Credential vault/glossary/credential-vaultKMS/glossary/kmsOAuth flow/glossary/oauth-flowPer-user scope/glossary/per-user-scope