Foxcolab

Glossary

Envelope encryption

Definition

Envelope encryption: Encrypting data with a data key and then encrypting that data key with another key, the key encryption key, so the locked data key can be stored with the data and access can change by re-locking keys instead of re-encrypting data.

Also known askey wrappingDEK and KEK encryptionlayered key encryption

In short

Envelope encryption encrypts data with a data key, then encrypts that data key with a second key, the key encryption key, and stores the locked data key next to the data. Sharing or rotating access means re-locking a small key instead of re-encrypting the data. Who can read the data depends on where the top key in the chain is unlocked: in a provider's key service or only on your device.

Key takeaways

  • Two layers: a data key encrypts the data, and a key encryption key encrypts (wraps) the data key.
  • The wrapped data key can sit right next to the data, because it's useless without the key above it.
  • Granting access or changing a password re-locks small keys; the data itself isn't touched.
  • Keys can chain several levels deep, but one top key must be unlocked somewhere to open the rest.
  • In Foxcolab Drive, the top of the chain is your account key, unlocked on your device, so Foxcolab can't read your files.

Last reviewed 5 December 2026 by Foxcolab Team

Envelope encryption encrypts data with one key, the data key, and then encrypts that data key with a second key, the key encryption key. The locked data key is stored right next to the data. Google Cloud calls it "the process of encrypting a key with another key," and AWS "the practice of encrypting plaintext data with a data key, and then encrypting the data key under another key."

A worked example#

Say you store a 2 GB video. The system makes a fresh random data key, encrypts the video with it, then wraps that small key with your key encryption key and saves both together. To open the video, it unwraps the data key and decrypts.

Next, you share the video with a colleague. Instead of encrypting 2 GB again, the system wraps the same small data key with your colleague's key. The video doesn't change. AWS lists exactly this benefit: "you can re-encrypt only the data keys that protect the raw data." Rotating or changing the key on top works the same way.

Chains of keys#

Keys can stack several levels deep: file keys locked by folder keys, folder keys locked by a root key. AWS notes that "eventually, one key must remain in plaintext" somewhere, so the chain can be opened. That top key is the whole question. In a cloud key service, it lives with the provider: Google says its key encryption key "never leaves Cloud KMS." The provider can unlock the chain on its own. In end-to-end encryption, the top key is unlocked only on your device.

In Foxcolab#

Foxcolab Drive is built this way, with the top of the chain on your side. Each file version has its own key. That key is locked with the file's key, which is locked with its folder's key, up to your Drive root key, which is locked with your account key. Your account key is unlocked with your password on your device, so Foxcolab stores only locked keys and can't read your files or file names.

You see the payoff in everyday use. Changing your password re-locks one key, your account key, and nothing else is re-encrypted. Sharing a file with someone locks that file's key to their key, and sharing a folder gives them the keys to what's inside it. See how your encryption works and Share a folder with specific people in Drive.

Create a free account or see plans.

Keep exploring

All terms

Foxcolab

Private work tools, without the ads.

Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.

Jump to