Envelope encryption encrypts data with a data key and then encrypts that data key with a separate, more protected key.
Envelope encryption uses two layers of keys. A data encryption key (DEK) encrypts the actual content, and a key encryption key (KEK) encrypts the DEK. The wrapped DEK is stored next to the ciphertext, while the KEK stays in a safer place such as a key management service, a hardware module or, for a password manager, a key derived from your master password. This has several benefits. Bulk data is encrypted locally with fast symmetric ciphers, and only the small DEK crosses a trust boundary. Rotating the KEK means re-wrapping DEKs rather than re-encrypting all data. Each item can have its own DEK, which limits the blast radius if one key leaks. Cloud providers document the pattern in their key management services, and NIST SP 800-57 covers key wrapping and hierarchy. In a multi-user vault the same idea extends to sharing: a collection's key is wrapped separately to each member's public key, so adding or removing a member changes envelopes, not content. Failure modes include losing the KEK, which makes data unrecoverable, and storing the KEK beside the data, which defeats the purpose. BotPassword is built around a key hierarchy where item keys are wrapped by vault keys, which are wrapped by an account root key.