Docs HomeMongoDB Manual

CSFLE CompatibilityCSFLE兼容性

MongoDB's Queryable Encryption feature is available (GA) in MongoDB 7.0 and later. To learn more about Queryable Encryption and compare its benefits with Client-Side Field Level Encryption, see Queryable Encryption.

This page describes the MongoDB and driver versions with which Client-Side Field Level Encryption is compatible.本页介绍了与客户端字段级加密兼容的MongoDB和驱动程序版本。

MongoDB Edition and Version CompatibilityMongoDB版本和版本兼容性

Automatic encryption with Client-Side Field Level Encryption is only available with MongoDB Enterprise Edition, version 4.2 or later.客户端字段级加密的自动加密仅适用于MongoDB Enterprise Edition 4.2或更高版本。

Manual encryption with Client-Side Field Level Encryption is available with MongoDB Community and Enterprise Edition, version 4.2 or later.MongoDB Community and Enterprise Edition 4.2或更高版本提供使用客户端字段级加密的手动加密

Driver Compatibility Table驱动程序兼容性表

Client-Side Field Level Encryption is only available the following official compatible driver versions or later:客户端字段级加密仅适用于以下官方兼容的驱动程序版本或更高版本:

DriverSupported Versions支持的版本Quickstarts / Tutorials快速入门/教程
Node3.4.0+Node.js Quickstart
Client-Side Field Level Encryption Guide
Java3.12.0+Java Driver Quickstart
Java Async Driver Quickstart
Client-Side Field Level Encryption Guide
Java Reactive Streams1.13.0+Java RS Documentation
Python (PyMongo)3.10.0+Python Driver Quickstart
Client-Side Field Level Encryption Guide
C#/.NET2.10.0+.NET Driver Quickstart
C1.17.5C Driver Client-Side Field Level Encryption
Go1.2+Go Driver Quickstart
Scala2.8.0+Scala Documentation
PHP1.6.0+PHP Driver Quickstart
Ruby2.12.1+Ruby Driver Quickstart
Important

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 libmongocrypt.要使用CSFLE的键轮换API,如rewriteManyDateKey方法,您必须使用驱动程序绑定包或libmongocrypt的特定版本。

The following list details each driver's key rotation API dependencies:以下列表详细说明了每个驱动程序的键轮换API依赖关系:

  • Node.js Driver: Use mongodb-client-encryption version 2.2.0-alpha.6 or later.Node.js驱动程序:使用mongodb-client-encryption版本2.2.0-alpha.6或更高版本。
  • Java Driver: Use mongodb-crypt version 1.7.3 or later.Java驱动程序:使用mongodb-crypt 1.7.3或更高版本。
  • pymongo: Use pymongocrypt version 1.3.1 or later.pymongo:使用pymongocrypt 1.3.1或更高版本。
  • Go Driver: Use libmongocrypt version 1.5.2 or later.Go驱动程序:使用libmongocrypt 1.5.2或更高版本。
  • C#/.NET Driver: Use the MongoDB C#/.NET Driver version 2.17.1 or later.C#/.NET驱动程序:使用MongoDB C#/NET驱动程序2.17.1或更高版本。

Please refer to the driver reference documentation for syntax and implementation examples.有关语法和实现示例,请参阅驱动程序参考文档。