This page describes the MongoDB and driver versions with which Client-Side Field Level Encryption is compatible.
Automatic encryption with Client-Side Field Level Encryption is only available with MongoDB Enterprise Edition, version 4.2 or later.
Explicit encryption with Client-Side Field Level Encryption is available with MongoDB Community and Enterprise Edition, version 4.2 or later.
Client-Side Field Level Encryption is only available the following official compatible driver versions or later:
Quickstarts / Tutorials
Key Rotation Support
To use the key rotation API of CSFLE, such as the
rewrapManyDateKey method, you must use specific versions
of either your driver's binding package or
The following list details each driver's key rotation API dependencies:
If you're using Node.js driver version 6.0.0 or later,
mongodb-client-encryptionmust have the same major version number as the driver. Otherwise, use a 2.x.x version of
mongodb-client-encryptionthat is 2.2.0 or later.
Java Driver: Use
mongodb-cryptversion 1.7.3 or later.
pymongocryptversion 1.3.1 or later.
Go Driver: Use
libmongocryptversion 1.5.2 or later.
C#/.NET Driver: Use the MongoDB C#/.NET Driver version 2.17.1 or later.
Please refer to the driver reference documentation for syntax and implementation examples.