For AI agents: a documentation index is available at https://www.mongodb.com/es/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

Install and Configure a CSFLE Query Analysis Component

MongoDB uses the Automatic Encryption Shared Library (recommended) or the mongocryptd executable process to translate queries into encrypted queries, and to encrypt or decrypt data.

To use CSFLE with automatic encryption, you must first choose the query analysis component you want MongoDB to use to encrypt the fields.

  • crypt_shared, the recommended CSFLE library.

  • mongocryptd, which is included in MongoDB Enterprise Server installations.

    Important

    mongocryptd is Deprecated

    Starting in MongoDB 9.0, mongocryptd is deprecated. Use the Automatic Encryption Shared Library instead.

The libmongocrypt library and MongoDB drivers require the Automatic Encryption Shared Library or mongocryptd to interpret encrypted queries. For more information, see Install libmongocrypt for CSFLE.

Select the query analysis component you want to use and follow the steps to install and configure a CSFLE query analysis component.