[英]C# encrypt mongodb sub-document or sub collection
Using.Net C# I'm trying to encrypt sub document while inserting & decrypt same while reading. Using.Net C# 我试图在阅读时插入和解密子文档时加密子文档。 I tried with CSFL but no use.
我尝试使用 CSFL 但没有用。
Could any one suggest the solution任何人都可以提出解决方案
It's exactly what CSFLE is designed for, in particular I mean auto encryption.这正是 CSFLE 的设计目的,特别是我的意思是自动加密。 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.您应该在 schemaMap 中指定您的 subSocument,在提供的示例中,
encryptedField
是一个在写入期间自动加密并在读取期间自动解密的字段。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.