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.
Before You Begin
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,
mongocryptdis 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.
Steps
Select the query analysis component you want to use and follow the steps to install and configure a CSFLE query analysis component.