C# Field Level Encryption Example

Are there any C# Driver examples showing how to use Field Level Encryption? Do the models define the encrypted fields as byte arrays or does the driver convert the string values to the bindata subtype 6?

For those who might be interested, I found the following example.

1 Like

Hi @Eddie_Conner,
glad that you found the example on the driver repository. Another example .NET/C# client encryption can be found at

Also, please see Client-Side Field Level Encryption Guide for more information.

1 Like

@Eddie_Conner Did you successfully implemented this feature? I am trying to do it for almost 3 days, still not successful. Can you please send me the steps, what and how you did this, and where you running this code in Linux containers?