2 / 7
Sep 2022

I have downloaded the libmongocrypt (for Client-Side field level encryption) zip file for windows using the link given on the Link page. I am trying to figure out what to do after the download. How to install it on the system?
Can anyone help me?

Yes doc does not give any steps for Windows.It must be a simple install of that dll
Did you try to unzip/extract that downloaded file?
I think it creates a directory and extracts the file under whichever path you saved it
After install you have to update your path and run test as per steps in the doc

I did unzip the file. It contains 2 folders - bin and includes. The content of these folders are uploaded in the links below:

It is still not clear to me how do I install the library using these contents.
Nothing, in the case of installation in windows, is given in the docs as well.

Can you give me step by step instructions to do so?
Thanks.

Welcome to the MongoDB Community @Kartik_Saini1 !

Can you provide more details on what you are trying to do:

  • version of MongoDB server
  • version of MongoDB driver

Based on the documentation link you referenced, I assume you may be trying to use the preview of Queryable Encryption. If so, you will need to meet all of the Queryable Encryption Installation Requirements.

Regards,
Stennie

I am trying to implement client-side field level encryption using a windows OS. I have already downloaded libmongocrypt zip file for windows 11 (from the Link) and unzipped it. I do not know how to install the libmongocrypt package from that extracted folder.

2 years later

I have same questions for the libmongocrypt usage on the windows. The MongoDB document and support doesn’t help me at all. However, in the source code, I found the usage at: mongo-go-driver/x/mongo/driver/mongocrypt/mongocrypt.go at master · mongodb/mongo-go-driver · GitHub.

From the code description, you need to copy mongocrypt.dll to the path C:\libmongocrypt\bin and copy *.h files to path C:\libmongocrypt\include. You could run your code with golang. If you use other languages, you could include it directly. It is two years after your questions, maybe you didn’t need it. Hope the answer could help others.