Using .Net C# I'm trying to encrypt sub document while inserting & decrypt same while reading. I tried with CSFL but no use.
Could any one suggest the solution
Using .Net C# I'm trying to encrypt sub document while inserting & decrypt same while reading. I tried with CSFL but no use.
Could any one suggest the solution
It's exactly what CSFLE is designed for, in particular I mean auto encryption. Look at this doc. You should specify your subSocument in schemaMap, in the provided example, encryptedField
is a field that will be automatically encrypted during writing and decrypted during reading.