# Getting Started With Queryable Encryption in the MongoDB C# Driver

DevFeed: [Getting Started With Queryable Encryption in the MongoDB C# Driver](<https://devfeed.tech/articles/getting-started-with-queryable-encryption-in-the-mongodb-c-driver-21832.md>)

Original publisher: [Read original article](<https://www.thepolyglotdeveloper.com/blog/2025/04/getting-started-with-queryable-encryption-in-the-mongodb-c-driver/>)

Author: Luce Carter

Published: 2025-04-22T12:00:00Z

Content type: tutorial

Language: en

Sources: [Nic Raboy](<https://devfeed.tech/sources/nic-raboy.md>)

Topics: [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [C#](<https://devfeed.tech/topics/csharp.md>)

Tags: [application](<https://devfeed.tech/tags/application.md>), [atlas](<https://devfeed.tech/tags/atlas.md>), [automatic](<https://devfeed.tech/tags/automatic.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [csharp](<https://devfeed.tech/tags/csharp.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [driver](<https://devfeed.tech/tags/driver.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [getting-started](<https://devfeed.tech/tags/getting-started.md>), [healthcare](<https://devfeed.tech/tags/healthcare.md>), [key-management](<https://devfeed.tech/tags/key-management.md>), [library](<https://devfeed.tech/tags/library.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [net-9](<https://devfeed.tech/tags/net-9.md>), [private](<https://devfeed.tech/tags/private.md>), [queries](<https://devfeed.tech/tags/queries.md>), [security](<https://devfeed.tech/tags/security.md>)

## AI overview

MongoDB Queryable Encryption lets the server query encrypted data without reading it, and lets applications choose which fields to encrypt. The excerpt's C# tutorial applies it to sensitive healthcare fields such as SSNs and dates of birth. It requires .NET 9, a MongoDB cluster running version 7.0 or later, and a project cloned from the tutorial's repository. Setup includes downloading the automatic encryption shared library for the correct platform, adding its path and the cluster connection string to appsettings, then creating a helper class for encryption key management. The excerpt ends during that class's instructions, so it does not establish the full implementation.

## Source excerpt

With the release of MongoDB 7.0 in August 2023, we introduced a feature called Queryable Encryption, the first of its kind. With queryable encryption, your data is encrypted, even at rest, with the se... The post Getting Started With Queryable Encryption in the MongoDB C# Driver appeared first on DEV.